Only autosave if there are unsaved changes to the file

Originally committed to SVN as r4771.
This commit is contained in:
Thomas Goyne 2010-09-08 20:03:20 +00:00
parent 7e72a9e0cf
commit 2662a69b2e
1 changed files with 1 additions and 2 deletions

View File

@ -1369,9 +1369,8 @@ void FrameMain::OnOpenStylingAssistant (wxCommandEvent &) {
/// @brief Autosave the currently open file, if any
void FrameMain::OnAutoSave(wxTimerEvent &) {
// Auto Save
try {
if (ass->loaded) {
if (ass->loaded && ass->IsModified()) {
// Set path
wxFileName origfile(ass->filename);
wxString path = lagi_wxString(OPT_GET("Path/Auto/Save")->GetString());