Fixed autosaving of some file types.
Originally committed to SVN as r1090.
This commit is contained in:
parent
e6331a182a
commit
870d249123
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue