Commit 4bf4311c authored by Ahmad Samir's avatar Ahmad Samir Committed by Tomaz Canabrava
Browse files

When saving config, only sync a KConfig object once

KConfigGroup::sync() calls the parent KConfig object's sync(), so running
the latter once at the end should be enough, AFAICS.
parent 1c7ca419
Pipeline #179916 passed with stage
in 3 minutes and 56 seconds
......@@ -53,10 +53,9 @@ void QuickCommandsModel::save()
element.writeEntry("name", data.name);
element.writeEntry("tooltip", data.tooltip);
element.writeEntry("command", data.command);
element.sync();
}
baseGroup.sync();
}
config.sync();
}
......
......@@ -283,10 +283,9 @@ void SSHManagerModel::save()
sshGroup.writeEntry("useSshConfig", data.useSshConfig);
sshGroup.writeEntry("username", data.username);
sshGroup.writeEntry("importedFromSshConfig", data.importedFromSshConfig);
sshGroup.sync();
}
baseGroup.sync();
}
config.sync();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment