summaryrefslogtreecommitdiffstats
path: root/sigscript
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-03-16 20:35:39 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-03-17 17:35:57 -0400
commit7e7427be5254dcdf2ce471918015db604e25449d (patch)
tree8641f6be18d0b3c0feea47e5d3e8f8138f62eae2 /sigscript
parentf69d89e791c0c561b5548001f38bfc1165b807af (diff)
downloadsigen-7e7427be5254dcdf2ce471918015db604e25449d.tar.gz
sigen-7e7427be5254dcdf2ce471918015db604e25449d.tar.xz
sigen-7e7427be5254dcdf2ce471918015db604e25449d.zip
Return the status in option setting and unsetting
Diffstat (limited to 'sigscript')
-rw-r--r--sigscript/Config.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sigscript/Config.cpp b/sigscript/Config.cpp
index 04a3ad41..9daff0a8 100644
--- a/sigscript/Config.cpp
+++ b/sigscript/Config.cpp
@@ -100,7 +100,9 @@ bool Config::setOptions(const QString& name, const Options options)
{
m_values[name].second |= options;
emit(optionsChanged(name, options));
+ return true;
}
+ return false;
}
bool Config::unsetOptions(const QString& name, const Options options)
@@ -110,7 +112,9 @@ bool Config::unsetOptions(const QString& name, const Options options)
{
m_values[name].second &= ~options;
emit(optionsChanged(name, options));
+ return true;
}
+ return false;
}
Config::Options Config::options(const QString& name, const bool recursive) const