Fixed bug related to tag cycling, which would reset grid, move video and force a refresh of everything (slow, and could undo uncommited changes)

Originally committed to SVN as r73.
This commit is contained in:
Rodrigo Braz Monteiro 2006-02-19 04:00:22 +00:00
parent f549c498c3
commit 82236684e7
2 changed files with 28 additions and 16 deletions

View file

@ -27,6 +27,7 @@ Please visit http://aegisub.net to download latest version
- Default video zoom can now be set in config.dat and is defaulted to 100% (AMZ)
- Fixed crash in Translation and Styling assistants, when you attempted to move past end of file, and then play (AMZ)
- Fixed linked commit of times, so it will only commit both times if the other was changed (to prevent damage when editing multiple lines) (AMZ)
- Fixed bug related to tag cycling, which would reset grid, move video and force a refresh of everything (slow, and could undo uncommited changes) (AMZ)
= 1.09 beta - 2006.01.16 ===========================

View file

@ -996,6 +996,7 @@ void FrameMain::OnOpenStylingAssistant (wxCommandEvent &event) {
// Auto backup
void FrameMain::OnAutoSave(wxTimerEvent &event) {
// Auto Save
try {
if (AssFile::top->loaded && AssFile::top->IsASS) {
// Set path
wxFileName origfile(AssFile::top->filename);
@ -1015,6 +1016,16 @@ void FrameMain::OnAutoSave(wxTimerEvent &event) {
StatusTimeout(_("File backup saved as \"") + backup + _T("\"."));
}
}
catch (wxString err) {
StatusTimeout(_T("Exception when attempting to autosave file: ") + err);
}
catch (wchar_t *err) {
StatusTimeout(_T("Exception when attempting to autosave file: ") + wxString(err));
}
catch (...) {
StatusTimeout(_T("Unhandled exception when attempting to autosave file."));
}
}
///////////////////
@ -1106,7 +1117,7 @@ void FrameMain::OnToggleTags(wxCommandEvent &event) {
Options.Save();
// Refresh grid
SubsBox->LoadFromAss(NULL,true,true);
SubsBox->Refresh(false);
}