Untitled files will now get auto-saved as "Untitled.AUTOSAVE.ass".

Originally committed to SVN as r1620.
This commit is contained in:
Rodrigo Braz Monteiro 2007-10-22 20:47:57 +00:00
parent 45f5886c2a
commit d761baadf3
2 changed files with 5 additions and 1 deletions

View file

@ -163,6 +163,8 @@ Please visit http://aegisub.net to download latest version
- Added a new "Video Details" dialog, that lists some information regarding the currently open video. (demi`)
- Added support for reading keyframes from xvid pass files. (demi`)
- Added offsetting support to the resolution resampler. (AMZ)
- Several fixes to Matroska parsing. (AMZ)
- Untitled files will now get auto-saved as "Untitled.AUTOSAVE.ass". (AMZ)
= 1.10 beta - 2006.08.07 ===========================

View file

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