Permalink
Browse files

Clear variable-changed-flag on successful save

  • Loading branch information...
1 parent 2b5dfa1 commit 5a747a48bd5820315afa14785b9e3df7d946dcf3 @nickgammon committed Jul 7, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 doc.cpp
View
@@ -4907,8 +4907,12 @@ BOOL CMUSHclientDoc::DoSave(LPCTSTR lpszPathName, BOOL bReplace)
}
} // end of executing save script
- return CDocument::DoSave (newName, bReplace);
+ BOOL bSuccess = CDocument::DoSave (newName, bReplace);
+ if (bSuccess)
+ m_bVariablesChanged = false;
+
+ return bSuccess;
}

0 comments on commit 5a747a4

Please sign in to comment.