mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Coding style fixes.
This commit is contained in:
parent
bd5dd130e5
commit
2c88810459
@ -210,12 +210,10 @@ bool DatabaseTabWidget::closeDatabase(Database* db)
|
||||
}
|
||||
}
|
||||
if (dbStruct.modified) {
|
||||
if(config()->get("AutoSaveOnExit").toBool())
|
||||
{
|
||||
if (config()->get("AutoSaveOnExit").toBool()) {
|
||||
saveDatabase(db);
|
||||
}
|
||||
else
|
||||
{
|
||||
else {
|
||||
QMessageBox::StandardButton result =
|
||||
QMessageBox::question(
|
||||
this, tr("Save changes?"),
|
||||
|
@ -80,8 +80,10 @@ void SettingsWidget::reject()
|
||||
|
||||
void SettingsWidget::enableAutoSaveOnExit(bool checked)
|
||||
{
|
||||
if(checked)
|
||||
if(checked) {
|
||||
m_generalUi->autoSaveOnExitCheckBox->setEnabled(false);
|
||||
else
|
||||
}
|
||||
else {
|
||||
m_generalUi->autoSaveOnExitCheckBox->setEnabled(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user