Fix removing open databases setting

* Fixes #5065
This commit is contained in:
Jonathan White 2020-07-18 10:00:30 -04:00
parent 7f2efd3193
commit fd7daf4c89

View File

@ -385,7 +385,6 @@ void ApplicationSettingsWidget::saveSettings()
// Security: clear storage if related settings are disabled
if (!config()->get(Config::RememberLastDatabases).toBool()) {
config()->remove(Config::LastDatabases);
config()->remove(Config::OpenPreviousDatabasesOnStartup);
config()->remove(Config::LastActiveDatabase);
config()->remove(Config::LastAttachmentDir);
}
@ -425,7 +424,6 @@ void ApplicationSettingsWidget::resetSettings()
// Clear recently used data
config()->remove(Config::LastDatabases);
config()->remove(Config::OpenPreviousDatabasesOnStartup);
config()->remove(Config::LastActiveDatabase);
config()->remove(Config::LastAttachmentDir);
config()->remove(Config::LastKeyFiles);