Skip to content
Snippets Groups Projects
Commit acef9a9f authored by yanmorin's avatar yanmorin
Browse files

Correct ConfigTreeSave
parent 1e336852
No related branches found
No related tags found
No related merge requests found
......@@ -152,7 +152,7 @@ ConfigTree::setConfigTreeItem(const std::string& section, const std::string& ite
// Save config to a file (ini format)
bool
ConfigTree::saveConfigTree(const std::string& fileName) {
if (fileName.empty() && _sections.begin() != _sections.end() ) {
if (fileName.empty() && _sections.begin() == _sections.end() ) {
return false;
}
......
......@@ -960,7 +960,7 @@ ManagerImpl::createSettingsPath (void) {
_path = _path + "/" + PROGNAME + "rc";
exist = Config::tree()->populateFromFile(_path);
exist = _config.populateFromFile(_path + "2");
exist = _config.populateFromFile(_path);
if (exist == 0){
// If populateFromFile failed
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment