idlehomescreen/xmluirendering/uiengine/src/xneditor.cpp
branchRCL_3
changeset 31 89165693e770
parent 28 d721605b30d0
--- a/idlehomescreen/xmluirendering/uiengine/src/xneditor.cpp	Mon Jun 21 15:27:11 2010 +0300
+++ b/idlehomescreen/xmluirendering/uiengine/src/xneditor.cpp	Thu Jul 15 18:25:29 2010 +0300
@@ -313,8 +313,8 @@
     iHspsWrapper = CHspsWrapper::NewL( aUid, this );
     iRepository= CRepository::NewL( TUid::Uid( KCRUidActiveIdleLV ) );
     iOomSysHandler = CXnOomSysHandler::NewL();
-    iNotifyWidgetListChanged = CPeriodic::New( CActive::EPriorityIdle );
-    iNotifyViewListChanged = CPeriodic::New( CActive::EPriorityIdle );
+    iNotifyWidgetListChanged = CPeriodic::NewL( CActive::EPriorityIdle );
+    iNotifyViewListChanged = CPeriodic::NewL( CActive::EPriorityIdle );
     }
 
 // ---------------------------------------------------------------------------
@@ -323,13 +323,15 @@
 // 
 CXnEditor::~CXnEditor()
     {
-    if ( iNotifyWidgetListChanged->IsActive() )
+    if ( iNotifyWidgetListChanged && 
+       iNotifyWidgetListChanged->IsActive() )
         {
         iNotifyWidgetListChanged->Cancel();
         }
     delete iNotifyWidgetListChanged;
 
-    if ( iNotifyViewListChanged->IsActive() )
+    if ( iNotifyViewListChanged && 
+       iNotifyViewListChanged->IsActive() )
         {
         iNotifyViewListChanged->Cancel();
         }
@@ -2160,9 +2162,11 @@
         for ( TInt i = 0; i < aInfos.Count() && !contentInfo; i++ )
             {
             CHsContentInfo* info = aInfos[i];
-            if ( aPlugin.PluginUid().CompareF( info->Uid() ) == 0 && 
-                 ( ( aPlugin.PublisherName().Length() == 0 ) || 
-                   ( aPlugin.PublisherName().CompareF( info->PublisherId() ) == 0 ) ) )
+            if ( ( !aPlugin.PublisherName().Length() && 
+                   aPlugin.PluginUid().CompareF( info->Uid() ) == 0 ) ||
+                 ( aPlugin.PublisherName().Length() &&
+                   aPlugin.PublisherName().CompareF( info->PublisherId() ) == 0 )
+                )
                 {
                 contentInfo = info->CloneL();
                 CleanupStack::PushL( contentInfo );