mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-07-15 11:09:23 -04:00
Add proper error handling when QSaveFile::open() fails.
Based on pull request by Valeriy <jazzvoid@gmail.com> Closes #450
This commit is contained in:
parent
57ec558396
commit
fb57ed2bcd
1 changed files with 5 additions and 0 deletions
|
@ -309,6 +309,11 @@ bool DatabaseTabWidget::saveDatabase(Database* db)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
MessageBox::critical(this, tr("Error"), tr("Writing the database failed.") + "\n\n"
|
||||||
|
+ saveFile.errorString());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
dbStruct.modified = false;
|
dbStruct.modified = false;
|
||||||
updateTabName(db);
|
updateTabName(db);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue