[Digikam-devel] [digikam] [Bug 326959] Digikam crash while scanning pictures for thumnails maintenance
    Gilles Caulier 
    caulier.gilles at gmail.com
       
    Sat Nov  2 08:38:19 GMT 2013
    
    
  
https://bugs.kde.org/show_bug.cgi?id=326959
--- Comment #21 from Gilles Caulier <caulier.gilles at gmail.com> ---
Git commit ee22c2cc043b604698f5637d12437ecd909108a9 by Gilles Caulier.
Committed on 02/11/2013 at 08:36.
Pushed by cgilles into branch 'master'.
move event loop after thread host thread reassignement.
M  +2    -2    libs/progressmanager/progressmanager.cpp
http://commits.kde.org/digikam/ee22c2cc043b604698f5637d12437ecd909108a9
diff --git a/libs/progressmanager/progressmanager.cpp
b/libs/progressmanager/progressmanager.cpp
index 7f763b9..ac6a0f7 100644
--- a/libs/progressmanager/progressmanager.cpp
+++ b/libs/progressmanager/progressmanager.cpp
@@ -381,13 +381,13 @@ void ProgressManager::Private::removeItem(ProgressItem*
const t)
 ProgressManager::ProgressManager()
     : d(new Private)
 {
-    d->waitingLoop = new QEventLoop(this);
-
     if (thread() != QApplication::instance()->thread())
     {
         kWarning() << "Attention: ProgressManager was created from a thread.
Create it in the main thread!";
         moveToThread(QApplication::instance()->thread());
     }
+
+    d->waitingLoop = new QEventLoop();
 }
 ProgressManager::~ProgressManager()
-- 
You are receiving this mail because:
You are the assignee for the bug.
    
    
More information about the Digikam-devel
mailing list