Don't show message box when creation of database is canceled.

This commit is contained in:
Florian Geyer 2012-05-05 13:40:45 +02:00
parent f20d892573
commit 93a868a571

View File

@ -162,7 +162,7 @@ bool DatabaseTabWidget::closeDatabase(Database* db)
if (dbName.right(1) == "*") { if (dbName.right(1) == "*") {
dbName.chop(1); dbName.chop(1);
} }
if (dbStruct.dbWidget->currentMode() == DatabaseWidget::EditMode) { if (dbStruct.dbWidget->currentMode() == DatabaseWidget::EditMode && db->hasKey()) {
QMessageBox::StandardButton result = QMessageBox::StandardButton result =
QMessageBox::question( QMessageBox::question(
this, tr("Close?"), this, tr("Close?"),