mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-04 08:55:31 -05:00
Don't show message box when creation of database is canceled.
This commit is contained in:
parent
f20d892573
commit
93a868a571
@ -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?"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user