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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user