]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/views/versioncontrol/updateitemstatesthread.cpp
Merge branch 'master' of git://anongit.kde.org/kde-baseapps
[dolphin.git] / src / views / versioncontrol / updateitemstatesthread.cpp
index 6bc3890988f910c304f2b0f157b4e866cf6cf27b..62fcd09aa2d2893016ed93d7bc77e2718c0fc18c 100644 (file)
@@ -64,20 +64,10 @@ void UpdateItemStatesThread::run()
                     items[i].version = static_cast<KVersionControlPlugin2::ItemVersion>(state);
                 }
             }
-
-            m_plugin->endRetrieval();
         }
-    }
-}
-
-bool UpdateItemStatesThread::lockPlugin()
-{
-    return m_globalPluginMutex->tryLock(300);
-}
 
-void UpdateItemStatesThread::unlockPlugin()
-{
-    m_globalPluginMutex->unlock();
+        m_plugin->endRetrieval();
+    }
 }
 
 QMap<QString, QVector<VersionControlObserver::ItemState> > UpdateItemStatesThread::itemStates() const