Another fix to stop incorrectly removing the lock file
git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@321 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
parent
63c21e3ac5
commit
50d5a10ff0
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue