creator/engine/src/creator_log.cpp
changeset 23 c9bf25a20c9f
parent 19 4b22a598b890
child 52 36d60d12b4af
--- a/creator/engine/src/creator_log.cpp	Thu May 27 12:52:19 2010 +0300
+++ b/creator/engine/src/creator_log.cpp	Fri Jun 11 13:39:09 2010 +0300
@@ -69,6 +69,7 @@
 
 CCreatorLogs::CCreatorLogs() : CActive(0)
     {
+    iEntriesToBeCreated = 1;
     }
 
 void CCreatorLogs::ConstructL(CCreatorEngine* aEngine)
@@ -115,11 +116,13 @@
         return;
         }
     
+    const TDesC* showText = &KSavingText;
     TBool finished(EFalse);
     TBool retval(ETrue);
     switch(aUserData)
         {
         case ECreatorLogsDelete:
+            showText = &KDeletingText;
             iEntriesToBeCreated = 1;
             finished = ETrue;
             break;
@@ -140,7 +143,7 @@
         // add this command to command array
         iEngine->AppendToCommandArrayL(iCommand, NULL, iEntriesToBeCreated);
         // started exucuting commands
-        iEngine->ExecuteFirstCommandL( KSavingText );
+        iEngine->ExecuteFirstCommandL( *showText );
         }
     }