mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-05 11:54:59 -04:00
Don't show message box when creation of database is canceled.
This commit is contained in:
parent
f20d892573
commit
93a868a571
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue