summaryrefslogtreecommitdiffstats
path: root/sigscript/Config.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigscript/Config.cpp')
-rw-r--r--sigscript/Config.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sigscript/Config.cpp b/sigscript/Config.cpp
index 6bfc8863..6f8fbf59 100644
--- a/sigscript/Config.cpp
+++ b/sigscript/Config.cpp
@@ -30,14 +30,14 @@ Config::Config(Config* parent) :
{
}
-bool Config::addValue(const QString& name, const QVariant& value, const Options options)
+bool Config::addValue(const QString& name, const QVariant& value)
{
if (!m_values.contains(name) || (m_values[name].second & Deleted))
- return setValue(name, value, options);
+ return setValue(name, value);
return false;
}
-bool Config::setValue(const QString& name, const QVariant& value, const Options options)
+bool Config::setValue(const QString& name, const QVariant& value)
{
QWriteLocker locker(&m_lock);
if (m_values.contains(name) && (m_values[name].second & ReadOnly))
@@ -47,7 +47,7 @@ bool Config::setValue(const QString& name, const QVariant& value, const Options
m_values[name].second &= ~Deleted;
emit(valueAdded(name, value));
}
- m_values[name] = Value(value, options);
+ m_values[name] = Value(value, 0);
emit(valueChanged(name, value));
return true;
}