From: Peter Penz Date: Wed, 29 Jul 2009 22:50:35 +0000 (+0000) Subject: terminate the thread which checks the revision state of items if the revision control... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/ddc14611478d21efb193981d1f768c90cec304af terminate the thread which checks the revision state of items if the revision control observer gets deleted svn path=/trunk/KDE/kdebase/apps/; revision=1004371 --- diff --git a/src/revisioncontrolobserver.cpp b/src/revisioncontrolobserver.cpp index f47ef3bcb..b37acb4cb 100644 --- a/src/revisioncontrolobserver.cpp +++ b/src/revisioncontrolobserver.cpp @@ -139,6 +139,10 @@ RevisionControlObserver::RevisionControlObserver(QAbstractItemView* view) : RevisionControlObserver::~RevisionControlObserver() { + if (m_updateItemStatesThread != 0) { + m_updateItemStatesThread->terminate(); + m_updateItemStatesThread->wait(); + } delete m_plugin; m_plugin = 0; }