From fd7daf4c896ab59dd4c65c82a6b29920378b8a31 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Sat, 18 Jul 2020 10:00:30 -0400 Subject: [PATCH] Fix removing open databases setting * Fixes #5065 --- src/gui/ApplicationSettingsWidget.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gui/ApplicationSettingsWidget.cpp b/src/gui/ApplicationSettingsWidget.cpp index cd2b48c65..3f84b7654 100644 --- a/src/gui/ApplicationSettingsWidget.cpp +++ b/src/gui/ApplicationSettingsWidget.cpp @@ -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);