Coding style fixes.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user