mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
fix possible crash when the signal finished() has been emitted asynchronously
BUG: 213985 svn path=/trunk/KDE/kdebase/apps/; revision=1060029
This commit is contained in:
parent
1b05d108a1
commit
1c4fddb06e
1 changed files with 6 additions and 0 deletions
|
@ -178,6 +178,12 @@ void VersionControlObserver::verifyDirectory()
|
|||
|
||||
void VersionControlObserver::applyUpdatedItemStates()
|
||||
{
|
||||
if (m_plugin == 0) {
|
||||
// The signal finished() has been emitted, but the thread has been marked
|
||||
// as invalid in the meantime. Just ignore the signal in this case.
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_updateItemStatesThread->retrievedItems()) {
|
||||
// ignore m_silentUpdate for an error message
|
||||
emit errorMessage(i18nc("@info:status", "Update of version information failed."));
|
||||
|
|
Loading…
Reference in a new issue