Coding style fixes.

This commit is contained in:
Florian Geyer 2012-06-12 09:53:59 +02:00
parent bd5dd130e5
commit 2c88810459
2 changed files with 6 additions and 6 deletions

View File

@ -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?"),

View File

@ -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);
}
}