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
This commit is contained in:
sniperbeamer 2009-03-26 13:19:02 +00:00
parent cde51763aa
commit 82f4fc4749
1 changed files with 2 additions and 1 deletions

View File

@ -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;