Ensure mutexes are always properly unlocked

Error exists with Qt4 and Qt5.  Qt5 generated helpful warnings that made
it easier to debug.
This commit is contained in:
maurerpe
2016-02-21 13:20:46 -05:00
committed by wmayer
parent 8de9436c36
commit 31fd2d1762
3 changed files with 25 additions and 28 deletions

View File

@@ -134,7 +134,7 @@ public:
splash->showMessage(msg.replace(QLatin1String("\n"), QString()), alignment, textColor);
QMutex mutex;
mutex.lock();
QMutexLocker ml(&mutex);
QWaitCondition().wait(&mutex, 50);
}