1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-06 00:55:50 +00:00

CSMPrefs: fix deadlock in toColor()

This commit is contained in:
scrawl 2015-12-15 19:32:42 +01:00
parent 4553db7b43
commit 6ee7c61667

View File

@ -71,7 +71,7 @@ bool CSMPrefs::Setting::isTrue() const
QColor CSMPrefs::Setting::toColor() const
{
QMutexLocker lock (mMutex);
// toString() handles lock
return QColor (QString::fromUtf8 (toString().c_str()));
}