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:
Amar Takhar 2010-07-17 19:42:44 +00:00
parent c624b20777
commit 6705e2fa61
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ void SubsEditBox::Update (bool timeOnly,bool weak) {
MarginV->SetValue(curdiag->GetMarginString(2,false)); MarginV->SetValue(curdiag->GetMarginString(2,false));
Effect->SetValue(curdiag->Effect); Effect->SetValue(curdiag->Effect);
CommentBox->SetValue(curdiag->Comment); CommentBox->SetValue(curdiag->Comment);
StyleBox->Select(StyleBox->FindString(curdiag->Style)); StyleBox->SetValue(curdiag->Style);
ActorBox->SetValue(curdiag->Actor); ActorBox->SetValue(curdiag->Actor);
ActorBox->SetStringSelection(curdiag->Actor); ActorBox->SetStringSelection(curdiag->Actor);