pnb's fix to autosave.
Originally committed to SVN as r1643.
This commit is contained in:
parent
11fe00e620
commit
fb34d37e23
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue