diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-16 20:35:39 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-17 17:35:57 -0400 |
commit | 7e7427be5254dcdf2ce471918015db604e25449d (patch) | |
tree | 8641f6be18d0b3c0feea47e5d3e8f8138f62eae2 /sigscript | |
parent | f69d89e791c0c561b5548001f38bfc1165b807af (diff) | |
download | sigen-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.cpp | 4 |
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 |