camerauis/cameraxui/cxui/src/cxuiselftimer.cpp
changeset 46 c826656d6714
parent 41 67457b2ffb33
--- a/camerauis/cameraxui/cxui/src/cxuiselftimer.cpp	Thu Jul 15 01:53:45 2010 +0300
+++ b/camerauis/cameraxui/cxui/src/cxuiselftimer.cpp	Fri Aug 06 10:03:37 2010 +0300
@@ -29,6 +29,7 @@
 #include "cxesettings.h"
 #include "cxenamespace.h" // CxeSettingIds
 #include "cxeerror.h"
+#include "cxeexception.h"
 
 using namespace CxUiLayout;
 
@@ -272,12 +273,11 @@
     CX_DEBUG_ENTER_FUNCTION();
 
     // get the current postcapture timeout
-    CxeError::Id error = mSettings.get(CxeSettingIds::STILL_SHOWCAPTURED, mOldPostCaptureTimeOut);
-
-    if (error == CxeError::None) {
+    try {
+        mOldPostCaptureTimeOut = mSettings.get<int>(CxeSettingIds::STILL_SHOWCAPTURED);
         // set continuous postcapture (view is visible until dismissed)
         mSettings.set(CxeSettingIds::STILL_SHOWCAPTURED, CONTINUOUS_POSTCAPTURE);
-    } else {
+    } catch (CxeException &e) {
         // if there was an error, don't modify the postcapture setting
         mOldPostCaptureTimeOut = UNKNOWN;
     }