pnb's fix to autosave.

Originally committed to SVN as r1643.
This commit is contained in:
Rodrigo Braz Monteiro 2007-10-30 20:40:10 +00:00
parent 11fe00e620
commit fb34d37e23

View file

@ -1458,8 +1458,9 @@ void FrameMain::OnAutoSave(wxTimerEvent &event) {
// Save
wxString name = origfile.GetName();
if (name.IsEmpty()) name = _T("Untitled");
wxString backup = path + origfile.GetName() + name + _T(".AUTOSAVE.ass");
wxString backup = path;
if (name.IsEmpty()) backup += _T("Untitled.AUTOSAVE.ass");
else backup += origfile.GetName() + _T(".AUTOSAVE.ass");
AssFile::top->Save(backup,false,false);
// Set status bar