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:
parent
4553db7b43
commit
6ee7c61667
@ -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()));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user