src/hbcore/devicedialogbase/devicedialogserver/hbdevicedialogmanager_p.cpp
changeset 28 b7da29130b0e
parent 23 e6ad4ef83b23
child 30 80e4d18b72f5
--- a/src/hbcore/devicedialogbase/devicedialogserver/hbdevicedialogmanager_p.cpp	Thu Sep 02 20:44:51 2010 +0300
+++ b/src/hbcore/devicedialogbase/devicedialogserver/hbdevicedialogmanager_p.cpp	Fri Sep 17 08:32:10 2010 +0300
@@ -165,13 +165,11 @@
     _LIT_SECURITY_POLICY_PASS(KRdPolicy); // all pass
     _LIT_SECURITY_POLICY_S0(KWrPolicy, KHbPsForegroundAppOrientationCategoryUid.iUid); // pass device dialog server    
     
-    int error = mHbOriProperty.Define(KHbPsForegroundAppOrientationCategoryUid,
-                                      KHbPsForegroundAppOrientationKey,
-                                      RProperty::EInt, KRdPolicy, KWrPolicy);
-    if (error == KErrNone) {
-        mHbOriProperty.Attach(KHbPsForegroundAppOrientationCategoryUid,
-                              KHbPsForegroundAppOrientationKey);
-    }
+    mHbOriProperty.Define(KHbPsForegroundAppOrientationCategoryUid,
+                          KHbPsForegroundAppOrientationKey,
+                          RProperty::EInt, KRdPolicy, KWrPolicy);
+    mHbOriProperty.Attach(KHbPsForegroundAppOrientationCategoryUid,
+                          KHbPsForegroundAppOrientationKey);
 #endif        
     TRACE_EXIT
 }
@@ -183,7 +181,9 @@
 HbDeviceDialogManagerPrivate::~HbDeviceDialogManagerPrivate()
 {
     TRACE_ENTRY
-    killTimer(mHousekeeperTimerId);
+    if (mHousekeeperTimerId) {
+        killTimer(mHousekeeperTimerId);
+    }
 #if defined(Q_OS_SYMBIAN)
     mScene->removeItem(&mMousePressCatcher);
     mWindowRegion.Close();