|
|
@ -473,6 +473,7 @@ bool KeepassMainWindow::openDatabase(QString filename,bool IsAuto){ |
|
|
|
setStateFileModified(static_cast<Kdb3Database*>(db)->hasPasswordEncodingChanged()); |
|
|
|
setStateFileModified(static_cast<Kdb3Database*>(db)->hasPasswordEncodingChanged()); |
|
|
|
} |
|
|
|
} |
|
|
|
else{ |
|
|
|
else{ |
|
|
|
|
|
|
|
if (!dbReadOnly && QFile::exists(filename+".lock")) |
|
|
|
QFile::remove(filename+".lock"); |
|
|
|
QFile::remove(filename+".lock"); |
|
|
|
setStatusBarMsg(StatusBarLoadingFailed); |
|
|
|
setStatusBarMsg(StatusBarLoadingFailed); |
|
|
|
QString error=db->getError(); |
|
|
|
QString error=db->getError(); |
|
|
|