forked from mia/Aegisub
Try to preserve the value of the styles dropdown across undo/redo
Originally committed to SVN as r6139.
This commit is contained in:
parent
95ad8c1fba
commit
477dd8a2f6
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue