diff -r 4785f57bf3d4 -r 03646e8da489 homescreenapp/stateplugins/hsmenuworkerstateplugin/src/hsdeletecollectionstate.cpp --- a/homescreenapp/stateplugins/hsmenuworkerstateplugin/src/hsdeletecollectionstate.cpp Thu May 27 12:46:08 2010 +0300 +++ b/homescreenapp/stateplugins/hsmenuworkerstateplugin/src/hsdeletecollectionstate.cpp Fri Jun 11 13:30:16 2010 +0300 @@ -126,19 +126,12 @@ // void HsDeleteCollectionState::deleteMessageFinished(HbAction* finishedAction) { - if (mItemId !=0 ) { // (work-around for crash if more then one action is selected in HbDialog) - - if (finishedAction == mConfirmAction) { - HsMenuService::removeCollection(mItemId); - machine()->postEvent( - HsMenuEventFactory::createCollectionDeletedEvent()); - } - mItemId = 0; - emit exit(); - } else { - // (work-around for crash if more then one action is selected in HbDialog) - qWarning("Another signal finished was emited."); + if (finishedAction == mConfirmAction) { + HsMenuService::removeCollection(mItemId); + machine()->postEvent( + HsMenuEventFactory::createCollectionDeletedEvent()); } + emit exit(); } /*! @@ -149,10 +142,11 @@ { // Close messagebox if App key was pressed if (mDeleteMessage) { + disconnect(mDeleteMessage, SIGNAL(finished(HbAction*)), this, SLOT(deleteMessageFinished(HbAction*))); mDeleteMessage->close(); + mDeleteMessage = NULL; } - mDeleteMessage = NULL; - mConfirmAction= NULL; + mConfirmAction = NULL; mItemId = 0; }