|
|
@ -470,6 +470,7 @@ bool KeepassMainWindow::openDatabase(QString filename,bool IsAuto){ |
|
|
|
setStateFileModified(static_cast<Kdb3Database*>(db)->hasPasswordEncodingChanged()); |
|
|
|
setStateFileModified(static_cast<Kdb3Database*>(db)->hasPasswordEncodingChanged()); |
|
|
|
} |
|
|
|
} |
|
|
|
else{ |
|
|
|
else{ |
|
|
|
|
|
|
|
QFile::remove(filename+".lock"); |
|
|
|
setStatusBarMsg(StatusBarLoadingFailed); |
|
|
|
setStatusBarMsg(StatusBarLoadingFailed); |
|
|
|
QString error=db->getError(); |
|
|
|
QString error=db->getError(); |
|
|
|
if(error.isEmpty())error=tr("Unknown error while loading database."); |
|
|
|
if(error.isEmpty())error=tr("Unknown error while loading database."); |
|
|
|