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:
parent
cde51763aa
commit
82f4fc4749
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue