loadgen/ui/hb/src/enginewrapper.cpp
changeset 29 1c71b77fbc93
parent 17 4f2773374eff
child 48 da3ec8478e66
--- a/loadgen/ui/hb/src/enginewrapper.cpp	Tue Jun 01 14:40:54 2010 +0300
+++ b/loadgen/ui/hb/src/enginewrapper.cpp	Fri Jun 11 17:49:08 2010 +0300
@@ -19,6 +19,7 @@
 #include <hbmainwindow.h>
 //#include <hbcommonnote.h>
 #include <hbpopup.h>
+#include <hbaction.h>
 
 #include <QString>
  #include <QStringList>
@@ -136,8 +137,7 @@
 
 void EngineWrapper::StopLoadYesNoDialogClosed(HbAction *action)
 {
-    HbMessageBox *dlg = static_cast<HbMessageBox*>(sender());
-    if(action == dlg->primaryAction()){
+    if( action && !action->text().compare("yes", Qt::CaseInsensitive) ){
         const CArrayFix<TInt>* selectionIndexes = NULL;
         try{
             QT_TRAP_THROWING( selectionIndexes = QueryListSelectedIndexesOrCurrentItemL() );