diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-01-09 10:28:25 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-01-09 10:45:06 +0100 |
commit | c377ca3fb2d1e28646bf64b38a641bc07ffb6bc4 (patch) | |
tree | 748184682b291b2338a929fc8b3675e6e812e953 /tools/Config.cpp | |
parent | 8244726d3970db0d2b868c9c37179a3243bb6bc8 (diff) |
loolconfig: Only show "config updated" message when something was changed
Change-Id: I2d2b1e4b57cccbbe6f5608f0468bc9dfed3fd120
Reviewed-on: https://gerrit.libreoffice.org/65997
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'tools/Config.cpp')
-rw-r--r-- | tools/Config.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/Config.cpp b/tools/Config.cpp index 0e2505283..2c257c601 100644 --- a/tools/Config.cpp +++ b/tools/Config.cpp @@ -300,6 +300,7 @@ int Config::main(const std::vector<std::string>& args) { std::cerr << "Valid for " << validDays << " days - setting to config\n"; _loolConfig.setString("support_key", supportKeyString); + changed = true; } } } @@ -307,8 +308,8 @@ int Config::main(const std::vector<std::string>& args) { std::cerr << "Removing empty support key\n"; _loolConfig.remove("support_key"); + changed = true; } - changed = true; } #endif else if (args[0] == "set") |