homescreenapp/stateplugins/hsmenuworkerstateplugin/src/hspreviewhswidgetstate.cpp
changeset 71 1db7cc813a4e
parent 69 87476091b3f5
child 81 7dd137878ff8
equal deleted inserted replaced
69:87476091b3f5 71:1db7cc813a4e
   121         mEntryObserver.reset(
   121         mEntryObserver.reset(
   122             new HsMenuEntryRemovedHandler(mEntryId, this, SIGNAL(exit())));
   122             new HsMenuEntryRemovedHandler(mEntryId, this, SIGNAL(exit())));
   123         
   123         
   124         mPreviewDialog->open(this, SLOT(previewDialogFinished(HbAction*)));
   124         mPreviewDialog->open(this, SLOT(previewDialogFinished(HbAction*)));
   125     }
   125     }
   126 
   126     
   127     HSMENUTEST_FUNC_EXIT("HsPreviewHSWidgetState::onEntry");
   127     HSMENUTEST_FUNC_EXIT("HsPreviewHSWidgetState::onEntry");
   128 }
   128 }
   129 
   129 
   130 /*!
   130 /*!
   131  Slot launched after state has exited and in destructor.
   131  Slot launched after state has exited and in destructor.
   132  \retval void
   132  \retval void
   133  */
   133  */
   134 void HsPreviewHSWidgetState::cleanUp()
   134 void HsPreviewHSWidgetState::cleanUp()
   135 {
   135 {
   136     if (mPreviewDialog != NULL) {
   136     if (mPreviewDialog != NULL) {
   137         mPreviewDialog->close();
   137         mPreviewDialog->disconnect();
       
   138         mPreviewDialog ->close();
   138         mPreviewDialog = NULL;
   139         mPreviewDialog = NULL;
   139     }
   140     }
   140     
   141     
   141     if (mCorruptedMessage != NULL) {
   142     if (mCorruptedMessage != NULL) {
       
   143         mCorruptedMessage->disconnect();
   142         mCorruptedMessage->close();
   144         mCorruptedMessage->close();
   143         mCorruptedMessage = NULL;
   145         mCorruptedMessage = NULL;
   144     }
   146     }
   145     mEntryObserver.reset(0);
   147     
   146     mToken = NULL;
   148     mToken = NULL;
   147 }
   149 }
   148 
   150 
   149 /*!
   151 /*!
   150  Slot launched on dismissing the preview dialog
   152  Slot launched on dismissing the preview dialog