filebrowser/ui/src/enginewrapper.cpp
changeset 35 98924d2efce9
parent 23 c9bf25a20c9f
child 48 da3ec8478e66
--- a/filebrowser/ui/src/enginewrapper.cpp	Wed Jun 23 18:13:31 2010 +0300
+++ b/filebrowser/ui/src/enginewrapper.cpp	Tue Jul 06 14:17:03 2010 +0300
@@ -19,7 +19,7 @@
 #include "engine.h"
 #include "FBFileUtils.h"
 #include "notifications.h"
-#include "filebrowserview.h"
+#include "fbfileview.h"
 #include "searchview.h"
 #include "filebrowsersettings.h"
 #include "settingsview.h"
@@ -739,7 +739,7 @@
     const QString qText = QString::fromUtf16(aDescText.Ptr(), aDescText.Length());
     if (!mProgressDialog) {
         mProgressDialog = new HbProgressDialog(HbProgressDialog::WaitDialog);
-        QObject::connect(mProgressDialog, SIGNAL(cancelled ()), this, SLOT(progressDialogCancelled()));
+        QObject::connect(mProgressDialog, SIGNAL(cancelled()), this, SLOT(progressDialogCancelled()));
     }
 
     mProgressDialog->setText(qText);
@@ -751,8 +751,11 @@
 
 void EngineWrapper::CancelProgressDialog()
 {
-    if (mProgressDialog)
+    if (mProgressDialog) {
+        QObject::disconnect(mProgressDialog, SIGNAL(cancelled()), this, SLOT(progressDialogCancelled()));
         mProgressDialog->cancel();
+        QObject::connect(mProgressDialog, SIGNAL(cancelled()), this, SLOT(progressDialogCancelled()));
+    }
 }
 
 void EngineWrapper::SetProgressValue(TInt aValue)
@@ -771,7 +774,7 @@
     const QString qText = QString::fromUtf16(aDescText.Ptr(), aDescText.Length());
     if (!mWaitDialog) {
         mWaitDialog = new HbProgressDialog(HbProgressDialog::WaitDialog);
-        QObject::connect(mWaitDialog, SIGNAL(cancelled ()), this, SLOT(waitDialogCancelled()));
+        QObject::connect(mWaitDialog, SIGNAL(cancelled()), this, SLOT(waitDialogCancelled()));
     }
 
     mWaitDialog->setText(qText);