photosgallery/viewframework/views/cloudview/src/glxcloudviewimp.cpp
branchRCL_3
changeset 25 191387a8b767
parent 22 2dac0fdba72b
child 30 a60acebbbd9d
--- a/photosgallery/viewframework/views/cloudview/src/glxcloudviewimp.cpp	Wed Apr 14 15:57:24 2010 +0300
+++ b/photosgallery/viewframework/views/cloudview/src/glxcloudviewimp.cpp	Tue Apr 27 16:37:53 2010 +0300
@@ -137,9 +137,6 @@
 CGlxCloudViewImp::~CGlxCloudViewImp()
     {
     TRACER("GLX_CLOUD::CGlxCloudViewImp::~CGlxCloudViewImp");
-    
-    delete iMMCNotifier;
-    iMMCNotifier = NULL;
         
     CleanupVisuals ();
     delete iEmptyListText;
@@ -222,6 +219,7 @@
 	
     // set app state to tag-browser view
     GlxSetAppState::SetState (EGlxInTagBrowserView);
+    iMMCNotifier = CGlxMMCNotifier::NewL(*this);
     }
 
 // ---------------------------------------------------------------------------
@@ -232,6 +230,10 @@
 void CGlxCloudViewImp::DoMLViewDeactivate()
 	{
 	TRACER("GLX_CLOUD::CGlxCloudViewImp::DoMLViewDeactivate");
+	
+	delete iMMCNotifier;
+	iMMCNotifier = NULL;
+	
 	//Hide softkeys and toolbar upon view de-activation.
 	iViewWidget->enableControlPane(EFalse);
 	if ( EGlxNavigationForwards == iUiUtility->ViewNavigationDirection() )
@@ -368,9 +370,8 @@
     
      //acquire the focus so as to get events to your control instead of widgets
     iCloudControl->AcquireFocus();
-    
-    iMMCNotifier = CGlxMMCNotifier::NewL(*this);
     }
+	
 // ---------------------------------------------------------------------------
 // SetScrollBarRect()
 // ---------------------------------------------------------------------------