diff -r ccee5c4b0de4 -r 45459746d5e8 ui/commandhandlers/commoncommandhandlers/src/glxcommandhandlernewmedia.cpp --- a/ui/commandhandlers/commoncommandhandlers/src/glxcommandhandlernewmedia.cpp Mon Sep 20 12:39:08 2010 +0530 +++ b/ui/commandhandlers/commoncommandhandlers/src/glxcommandhandlernewmedia.cpp Mon Sep 27 15:13:20 2010 +0530 @@ -72,7 +72,6 @@ iNewMediaCreationError = KErrNone; if (ok == true) { - TPtrC16 newMediaItemTitleDes = (reinterpret_cast (mediaTitle.utf16())); @@ -86,6 +85,8 @@ } else { + // Reset the flag so that next addmedia cmd can be executed + iIsCmdActive = false; iNewMediaCreationError = KErrCancel; }