From 6705e2fa61a9c1948ac40915c49c02303aee312e Mon Sep 17 00:00:00 2001 From: Amar Takhar Date: Sat, 17 Jul 2010 19:42:44 +0000 Subject: [PATCH] Set the current style directly when updating the dropdown. The old way used Select() which caused an actual commit to happen. This has the side-effect of modifying the file on startup. We currently set the Actor using this method I don't see why doing the same for the Style won't work. Originally committed to SVN as r4684. --- aegisub/src/subs_edit_box.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/subs_edit_box.cpp b/aegisub/src/subs_edit_box.cpp index ca8c7176c..f4eedb6ec 100644 --- a/aegisub/src/subs_edit_box.cpp +++ b/aegisub/src/subs_edit_box.cpp @@ -286,7 +286,7 @@ void SubsEditBox::Update (bool timeOnly,bool weak) { MarginV->SetValue(curdiag->GetMarginString(2,false)); Effect->SetValue(curdiag->Effect); CommentBox->SetValue(curdiag->Comment); - StyleBox->Select(StyleBox->FindString(curdiag->Style)); + StyleBox->SetValue(curdiag->Style); ActorBox->SetValue(curdiag->Actor); ActorBox->SetStringSelection(curdiag->Actor);