]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix possible crash in version-control observer
authorPeter Penz <peter.penz19@gmail.com>
Sat, 14 Jan 2012 18:25:49 +0000 (19:25 +0100)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 14 Jan 2012 18:27:15 +0000 (19:27 +0100)
BUG: 291505
FIXED-IN: 4.8.0

src/views/versioncontrol/versioncontrolobserver.cpp

index 86049efa34d87ffb364d8ea7cfe683f742c36847..ac47090690b15cc489665746c296fca87914b10a 100644 (file)
@@ -195,7 +195,7 @@ void VersionControlObserver::slotThreadFinished()
     UpdateItemStatesThread* thread = m_updateItemStatesThread;
     m_updateItemStatesThread = 0; // The thread deletes itself automatically (see updateItemStates())
 
-    if (!m_plugin) {
+    if (!m_plugin || !thread) {
         return;
     }