From 2662a69b2eb4d0928deeb654318fb3989c983e49 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 8 Sep 2010 20:03:20 +0000 Subject: [PATCH] Only autosave if there are unsaved changes to the file Originally committed to SVN as r4771. --- aegisub/src/frame_main_events.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aegisub/src/frame_main_events.cpp b/aegisub/src/frame_main_events.cpp index c7b9624e1..c40bc3302 100644 --- a/aegisub/src/frame_main_events.cpp +++ b/aegisub/src/frame_main_events.cpp @@ -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());