mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-27 00:09:53 -05:00
Do not try to open a non-existing database.
This commit is contained in:
parent
886187baee
commit
15c18dd899
@ -105,6 +105,11 @@ void DatabaseTabWidget::openDatabase(const QString& fileName, const QString& pw,
|
||||
{
|
||||
QFileInfo fileInfo(fileName);
|
||||
QString canonicalFilePath = fileInfo.canonicalFilePath();
|
||||
if (canonicalFilePath.isEmpty()) {
|
||||
QMessageBox::warning(this, tr("Warning"), tr("File not found!"));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
QHashIterator<Database*, DatabaseManagerStruct> i(m_dbList);
|
||||
while (i.hasNext()) {
|
||||
|
Loading…
Reference in New Issue
Block a user