fix kanji timer
Originally committed to SVN as r1648.
This commit is contained in:
parent
ccca10564c
commit
0edd8bece1
1 changed files with 2 additions and 1 deletions
|
@ -186,7 +186,7 @@ END_EVENT_TABLE()
|
|||
void DialogKanjiTimer::OnClose(wxCommandEvent &event) {
|
||||
Options.SetBool(_T("kanji timer interpolation"),Interpolate->IsChecked());
|
||||
Options.Save();
|
||||
bool modified = LinesToChange.empty();
|
||||
bool modified = !LinesToChange.empty();
|
||||
|
||||
while(LinesToChange.empty()==false) {
|
||||
std::pair<int,wxString> p = LinesToChange.back();
|
||||
|
@ -197,6 +197,7 @@ void DialogKanjiTimer::OnClose(wxCommandEvent &event) {
|
|||
if (modified) {
|
||||
grid->ass->FlagAsModified(_("kanji timing"));
|
||||
grid->CommitChanges();
|
||||
grid->UpdateMaps();
|
||||
LinesToChange.clear();
|
||||
}
|
||||
Close();
|
||||
|
|
Loading…
Reference in a new issue