diff options
| author | Peter Penz <[email protected]> | 2009-07-29 22:50:35 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-07-29 22:50:35 +0000 |
| commit | ddc14611478d21efb193981d1f768c90cec304af (patch) | |
| tree | 086dc8ce12e0713511249fbeca78efab08f4423a | |
| parent | 1abf1974f5c356c56ca86147d65c90f1306b650f (diff) | |
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
| -rw-r--r-- | src/revisioncontrolobserver.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |
