From 82f4fc474976b83867679744f65a70aa85442d53 Mon Sep 17 00:00:00 2001 From: sniperbeamer Date: Thu, 26 Mar 2009 13:19:02 +0000 Subject: [PATCH] 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 --- src/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 8fc01a2..27a2c02 100644 --- a/src/mainwindow.cpp +++ b/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;