diff -r d0b4e67b3a60 -r f291796e213d ui/commandhandlers/commandhandlerbase/src/glxmpxcommandhandler.cpp --- a/ui/commandhandlers/commandhandlerbase/src/glxmpxcommandhandler.cpp Wed Jun 23 18:12:48 2010 +0300 +++ b/ui/commandhandlers/commandhandlerbase/src/glxmpxcommandhandler.cpp Tue Jul 06 14:16:16 2010 +0300 @@ -64,6 +64,7 @@ void GlxMpxCommandHandler::executeCommand(int commandId, int collectionId,QList indexList) { OstTraceFunctionEntry0( GLXMPXCOMMANDHANDLER_EXECUTECOMMAND_ENTRY ); + Q_UNUSED(indexList); int aHierarchyId = 0; TGlxFilterItemType aFilterType = EGlxFilterImage; @@ -349,7 +350,8 @@ // @todo error received. Close progress note DismissProgressNoteL(); iMediaList->RemoveMediaListObserver(this); - + iMediaList->Close(); + iMediaList = NULL; // handle error HandleErrorL(aErrorCode); } @@ -357,6 +359,8 @@ { DismissProgressNoteL(); iMediaList->RemoveMediaListObserver(this); + iMediaList->Close(); + iMediaList = NULL; CompletionNoteL(); iProgressComplete = EFalse; } @@ -478,7 +482,8 @@ // noteText has a place for a title string in it const TDesC& itemName = media->ValueText(KMPXMediaGeneralTitle); QString qtItemName = QString::fromUtf16(itemName.Ptr(),itemName.Length()); - qtText.append(QString("%1").arg(qtItemName)); + QString localisedString = qtText.arg(qtItemName); + qtText = localisedString; } // (else) If error, assume confirmed anyway CleanupStack::PopAndDestroy(attributeContext);