diff -r f9e827349359 -r b023a8d2866a photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlersend.cpp --- a/photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlersend.cpp Mon Jun 21 15:40:32 2010 +0300 +++ b/photosgallery/viewframework/commandhandlers/commoncommandhandlers/src/glxcommandhandlersend.cpp Thu Jul 15 18:39:01 2010 +0300 @@ -47,6 +47,7 @@ #include // for CGlxResourceUtilities #include #include // for CGlxImageViewerManager +#include // LOCAL FUNCTIONS AND CONSTANTS namespace @@ -351,9 +352,15 @@ iUiUtility->SetAppOrientationL( EGlxOrientationDefault ); } // Trap the send call to ensure the orientation is reverted - TRAP_IGNORE( iSendUi->ShowQueryAndSendL( msgData, Capabilities(), - filterOutPlugins, KNullUid, ETrue, *title ) ); - + TRAPD(error, iSendUi->ShowQueryAndSendL( msgData, Capabilities(), + filterOutPlugins, KNullUid, ETrue, *title )); + if (error == KErrNoMemory || error == KErrNotSupported || error + == KErrInUse || error == KErrDiskFull || error == KErrTimedOut + || error == KErrPermissionDenied) + { + GlxGeneralUiUtilities::ShowErrorNoteL(error); + GLX_LOG_INFO1("error sending the image %d",error); + } CleanupStack::PopAndDestroy(filterOutPlugins); CleanupStack::PopAndDestroy(title); CleanupStack::PopAndDestroy(msgData);