From 439b1272b00df7fa4d7778f0afd6386807ec24e4 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 1 Feb 2012 18:47:10 +0000 Subject: [PATCH] Select current style when the style manager is opened Originally committed to SVN as r6421. --- aegisub/src/dialog_style_manager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aegisub/src/dialog_style_manager.cpp b/aegisub/src/dialog_style_manager.cpp index 669d41adb..581f310d4 100644 --- a/aegisub/src/dialog_style_manager.cpp +++ b/aegisub/src/dialog_style_manager.cpp @@ -181,10 +181,10 @@ DialogStyleManager::DialogStyleManager(agi::Context *context) CurrentList->Bind(wxEVT_KEY_DOWN, &DialogStyleManager::OnKeyDown, this); // Select default item - wxString selected_style; - if (AssDialogue *dia = context->selectionController->GetActiveLine()) { - selected_style = dia->Style; - } + if (AssDialogue *dia = context->selectionController->GetActiveLine()) + CurrentList->SetStringSelection(dia->Style); + else + CurrentList->SetSelection(0); UpdateButtons();