From 870d249123ffd18e6e2add76953244be8373ae9d Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Wed, 18 Apr 2007 01:59:50 +0000 Subject: [PATCH] Fixed autosaving of some file types. Originally committed to SVN as r1090. --- aegisub/frame_main_events.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/frame_main_events.cpp b/aegisub/frame_main_events.cpp index 6bdddad47..a3f676186 100644 --- a/aegisub/frame_main_events.cpp +++ b/aegisub/frame_main_events.cpp @@ -1351,7 +1351,7 @@ void FrameMain::OnOpenStylingAssistant (wxCommandEvent &event) { void FrameMain::OnAutoSave(wxTimerEvent &event) { // Auto Save try { - if (AssFile::top->loaded && AssFile::top->CanSave()) { + if (AssFile::top->loaded) { // Set path wxFileName origfile(AssFile::top->filename); wxString path = Options.AsText(_T("Auto save path")); @@ -1363,7 +1363,7 @@ void FrameMain::OnAutoSave(wxTimerEvent &event) { if (!dstpath.DirExists()) wxMkdir(path); // Save - wxString backup = path + origfile.GetName() + _T(".AUTOSAVE.") + origfile.GetExt(); + wxString backup = path + origfile.GetName() + _T(".AUTOSAVE.ass"); AssFile::top->Save(backup,false,false); // Set status bar