Skip to content

Commit

Permalink
Do not restore from legacy settings when account deployment parameter…
Browse files Browse the repository at this point in the history
…s are passed.

Signed-off-by: alex-z <blackslayer4@gmail.com>
  • Loading branch information
allexzander committed Jan 19, 2023
1 parent e82b5e5 commit 0305762
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/accountmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ bool AccountManager::restore(bool alsoRestoreLegacySettings)
}

// If there are no accounts, check the old format.
if (settings->childGroups().isEmpty() && !settings->contains(QLatin1String(versionC)) && alsoRestoreLegacySettings) {
if (settings->childGroups().isEmpty()
&& !settings->contains(QLatin1String(versionC)) && alsoRestoreLegacySettings) {
restoreFromLegacySettings();
return true;
}
Expand Down

0 comments on commit 0305762

Please sign in to comment.