webengine/wrtharvester/src/wrtharvesterpsnotifier.cpp
changeset 26 cb62a4f66ebe
parent 11 c8a366e56285
child 28 d39add9822e2
--- a/webengine/wrtharvester/src/wrtharvesterpsnotifier.cpp	Thu Dec 17 09:20:16 2009 +0200
+++ b/webengine/wrtharvester/src/wrtharvesterpsnotifier.cpp	Thu Jan 07 13:31:38 2010 +0200
@@ -77,7 +77,7 @@
     	r = RProperty::Define( KPropertyCat, iKey, RProperty::EInt );
     	}
 
-    if ( r != KErrAlreadyExists || r != KErrNone )
+    if ( r != KErrAlreadyExists && r != KErrNone )
         {
         User::LeaveIfError( r );
         }
@@ -148,8 +148,17 @@
             iHarvester->ClearAllOperations();
             SetValue(1);
             }
+        else if( iKey == EWidgetUIState && value == 3 )
+            {            
+            iHarvester->SetReinstallWidget(ETrue);
+            }        
         else if( iKey == EWidgetRegAltered && value == 1 )
             {
+            if(!iHarvester->CanAccessRegistry())
+                {                
+                iHarvester->SetMSMode(0);
+                iHarvester->SetRegistryAccess(ETrue);
+                }
              iHarvester->UpdateL();
             }
         }