filebrowser/ui/src/enginewrapper.cpp
changeset 31 e7a04a6385be
parent 28 4cc0d1a608c1
child 51 b048e15729d6
--- a/filebrowser/ui/src/enginewrapper.cpp	Thu Jun 17 15:34:52 2010 +0300
+++ b/filebrowser/ui/src/enginewrapper.cpp	Thu Jun 24 14:55:55 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);