aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/settings.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 6631ceb6e..fddadbea6 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -635,9 +635,12 @@ bool Settings::getFlagStrNoEx(const std::string &name, u32 &val,
void Settings::set(const std::string &name, const std::string &value)
{
+ {
JMutexAutoLock lock(m_mutex);
m_settings[name].value = value;
+ }
+ doCallbacks(name);
}