logsui/AppSrc/CLogsRecentListView.cpp
branchRCL_3
changeset 57 2666d9724c76
parent 3 04ab22b956c2
child 58 d4f567ce2e7c
--- a/logsui/AppSrc/CLogsRecentListView.cpp	Mon Jun 21 15:24:27 2010 +0300
+++ b/logsui/AppSrc/CLogsRecentListView.cpp	Thu Jul 15 18:22:55 2010 +0300
@@ -526,7 +526,20 @@
         {
         // Just to make sure the inputblocker is not on
         RemoveInputBlocker();
-        CurrentModel()->DoActivateL( MLogsModel::EResetAndRefresh );
+        TRAPD( err, CurrentModel()->DoActivateL( MLogsModel::EResetAndRefresh ));   
+        if( err ) 
+            {
+            iCoeEnv->HandleError( err );
+            }
+        if( err == KErrDiskFull )
+            {
+            RWsSession& wsSession = CCoeEnv::Static()->WsSession();  
+            TApaTask logsui( wsSession );
+            TInt wgId = CCoeEnv::Static()->RootWin().WindowGroupId();
+            logsui.SetWgId( wgId );
+            logsui.KillTask();  
+            return;	
+            }
         
         // By default on gaining foreground, just refresh the list. So when active applications list, 
         // keylock or some note (like when plugin in the charger) is shown the list doesn't flicker. 
@@ -848,6 +861,15 @@
                     {
                     iCoeEnv->HandleError( err );
                     }
+                if( err == KErrDiskFull )
+                    {
+                    RWsSession& wsSession = CCoeEnv::Static()->WsSession();  
+                    TApaTask logsui( wsSession );
+                    TInt wgId = CCoeEnv::Static()->RootWin().WindowGroupId();
+                    logsui.SetWgId( wgId );
+                    logsui.KillTask();  
+                    return;
+                    }
                 
                 // By default on gaining foreground, just refresh the list. So when active applications list, 
                 // keylock or some note (like when plugin in the charger) is shown the list doesn't flicker.