Coding style fixes.

This commit is contained in:
Felix Geyer committed 2012-04-25 20:22:55 +02:00
1 parent 2ac659f408
commit e4bc302d3d
7 files changed
+97 -79

No files matched your search

+4 -2
View File
@@ -115,7 +115,8 @@ void DatabaseOpenDialog::openDatabase()
accept();
}
else {
QMessageBox::warning(this, tr("Error"), tr("Unable to open the database.\n%1").arg(reader.errorString()));
QMessageBox::warning(this, tr("Error"), tr("Unable to open the database.\n%1")
.arg(reader.errorString()));
m_ui->editPassword->clear();
}
}
@@ -137,7 +138,8 @@ void DatabaseOpenDialog::activateKeyFile()
void DatabaseOpenDialog::setOkButtonEnabled()
{
bool enable = m_ui->checkPassword->isChecked() || (m_ui->checkKeyFile->isChecked() && !m_ui->comboKeyFile->currentText().isEmpty());
bool enable = m_ui->checkPassword->isChecked()
|| (m_ui->checkKeyFile->isChecked() && !m_ui->comboKeyFile->currentText().isEmpty());
m_ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(enable);
}