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.
This commit is contained in:
parent
c624b20777
commit
6705e2fa61
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue