From b64e1f925c86bd40590b0c3844e4b94cca777c05 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 7 Mar 2012 22:40:45 +0000 Subject: [PATCH] Coalesce typing in the Actor box (but not selections from the dropdown) Originally committed to SVN as r6539. --- aegisub/src/subs_edit_box.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aegisub/src/subs_edit_box.cpp b/aegisub/src/subs_edit_box.cpp index 9aae6e43b..f33cdb615 100644 --- a/aegisub/src/subs_edit_box.cpp +++ b/aegisub/src/subs_edit_box.cpp @@ -516,8 +516,9 @@ void SubsEditBox::OnStyleChange(wxCommandEvent &) { SetSelectedRows(&AssDialogue::Style, StyleBox->GetValue(), _("style change"), AssFile::COMMIT_DIAG_META); } -void SubsEditBox::OnActorChange(wxCommandEvent &) { - SetSelectedRows(&AssDialogue::Actor, ActorBox->GetValue(), _("actor change"), AssFile::COMMIT_DIAG_META); +void SubsEditBox::OnActorChange(wxCommandEvent &evt) { + bool amend = evt.GetEventType() == wxEVT_COMMAND_TEXT_UPDATED; + SetSelectedRows(&AssDialogue::Actor, ActorBox->GetValue(), _("actor change"), AssFile::COMMIT_DIAG_META, amend); PopulateActorList(); }