Clean up code

This commit is contained in:
Chocobo1
2019-09-25 15:49:27 +08:00
parent 103e2b9398
commit de7d62c128
2 changed files with 10 additions and 9 deletions

View File

@@ -201,8 +201,9 @@ bool SettingsStorage::save()
QVariant SettingsStorage::loadValue(const QString &key, const QVariant &defaultValue) const
{
const QString realKey = mapKey(key);
const QReadLocker locker(&m_lock);
return m_data.value(mapKey(key), defaultValue);
return m_data.value(realKey, defaultValue);
}
void SettingsStorage::storeValue(const QString &key, const QVariant &value)