mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-17 09:24:28 -05:00
Fix crash when canceling save of new database (#2601)
* Fix crash when canceling save of new database * Standardize use of DatabaseWidget::save() function * Close new database tabs that are "discarded" * Fixes #2604. autoSaveOnExit setting * Re-implement autosave functionality
This commit is contained in:
parent
d66299260c
commit
c74664097b
7 changed files with 48 additions and 18 deletions
|
|
@ -100,6 +100,11 @@ void Config::upgrade()
|
|||
m_settings->remove(setting);
|
||||
}
|
||||
}
|
||||
|
||||
// > 2.3.4
|
||||
if (m_settings->value("AutoSaveAfterEveryChange").toBool()) {
|
||||
m_settings->setValue("AutoSaveOnExit", true);
|
||||
}
|
||||
}
|
||||
|
||||
Config::Config(const QString& fileName, QObject* parent)
|
||||
|
|
@ -167,7 +172,7 @@ void Config::init(const QString& fileName)
|
|||
m_defaults.insert("OpenPreviousDatabasesOnStartup", true);
|
||||
m_defaults.insert("AutoSaveAfterEveryChange", true);
|
||||
m_defaults.insert("AutoReloadOnChange", true);
|
||||
m_defaults.insert("AutoSaveOnExit", false);
|
||||
m_defaults.insert("AutoSaveOnExit", true);
|
||||
m_defaults.insert("BackupBeforeSave", false);
|
||||
m_defaults.insert("UseAtomicSaves", true);
|
||||
m_defaults.insert("SearchLimitGroup", false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue