]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/versioncontrol/versioncontrolobserver.cpp
A crash occurs if updateItemStates runs between the
[dolphin.git] / src / views / versioncontrol / versioncontrolobserver.cpp
index 42e00de429dbbb05b21cd524bbd3c042a88e1d87..64bc268679df0c7218f38c1a11ae4b9a7f9e115a 100644 (file)
@@ -245,7 +245,7 @@ void VersionControlObserver::updateItemStates()
         connect(m_updateItemStatesThread, SIGNAL(finished()),
                 m_updateItemStatesThread, SLOT(deleteLater()));
     }
-    if (m_updateItemStatesThread->isRunning()) {
+    else {
         // An update is currently ongoing. Wait until the thread has finished
         // the update (see slotThreadFinished()).
         m_pendingItemStatesUpdate = true;