fix kanji timer

Originally committed to SVN as r1648.
This commit is contained in:
Dan Donovan 2007-11-01 21:47:37 +00:00
parent ccca10564c
commit 0edd8bece1
1 changed files with 2 additions and 1 deletions

View File

@ -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();