mirror of https://github.com/odrling/Aegisub
parent
ccca10564c
commit
0edd8bece1
|
@ -186,7 +186,7 @@ END_EVENT_TABLE()
|
||||||
void DialogKanjiTimer::OnClose(wxCommandEvent &event) {
|
void DialogKanjiTimer::OnClose(wxCommandEvent &event) {
|
||||||
Options.SetBool(_T("kanji timer interpolation"),Interpolate->IsChecked());
|
Options.SetBool(_T("kanji timer interpolation"),Interpolate->IsChecked());
|
||||||
Options.Save();
|
Options.Save();
|
||||||
bool modified = LinesToChange.empty();
|
bool modified = !LinesToChange.empty();
|
||||||
|
|
||||||
while(LinesToChange.empty()==false) {
|
while(LinesToChange.empty()==false) {
|
||||||
std::pair<int,wxString> p = LinesToChange.back();
|
std::pair<int,wxString> p = LinesToChange.back();
|
||||||
|
@ -197,6 +197,7 @@ void DialogKanjiTimer::OnClose(wxCommandEvent &event) {
|
||||||
if (modified) {
|
if (modified) {
|
||||||
grid->ass->FlagAsModified(_("kanji timing"));
|
grid->ass->FlagAsModified(_("kanji timing"));
|
||||||
grid->CommitChanges();
|
grid->CommitChanges();
|
||||||
|
grid->UpdateMaps();
|
||||||
LinesToChange.clear();
|
LinesToChange.clear();
|
||||||
}
|
}
|
||||||
Close();
|
Close();
|
||||||
|
|
Loading…
Reference in New Issue