Fix autosave not marking the database as un-modified

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@304 b624d157-de02-0410-bad0-e51aec6abb33
master
sniperbeamer 15 years ago
parent cde51763aa
commit 82f4fc4749
  1. 3
      src/mainwindow.cpp

@ -657,7 +657,8 @@ void KeepassMainWindow::setStateFileOpen(bool IsOpen){
void KeepassMainWindow::setStateFileModified(bool mod){
if (config->autoSaveChange() && mod && db->file()){
OnFileSave();
if (OnFileSave())
return; // return on success, so we don't set the state to modified
}
ModFlag=mod;