Select current style when the style manager is opened

Originally committed to SVN as r6421.
This commit is contained in:
Thomas Goyne 2012-02-01 18:47:10 +00:00
parent f0933ecb1a
commit 439b1272b0
1 changed files with 4 additions and 4 deletions

View File

@ -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();