Try to preserve the value of the styles dropdown across undo/redo

Originally committed to SVN as r6139.
This commit is contained in:
Thomas Goyne 2011-12-22 21:31:29 +00:00
parent 95ad8c1fba
commit 477dd8a2f6
1 changed files with 2 additions and 0 deletions

View File

@ -339,8 +339,10 @@ void SubsEditBox::Update(int type) {
wxEventBlocker blocker(this);
if (type == AssFile::COMMIT_NEW || type & AssFile::COMMIT_STYLES) {
wxString style = StyleBox->GetValue();
StyleBox->Clear();
StyleBox->Append(c->ass->GetStyles());
StyleBox->Select(StyleBox->FindString(style));
}
if (type == AssFile::COMMIT_NEW) {