mirror of https://github.com/odrling/Aegisub
pnb's fix to autosave.
Originally committed to SVN as r1643.
This commit is contained in:
parent
11fe00e620
commit
fb34d37e23
|
@ -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 New Issue