Select current style when the style manager is opened
Originally committed to SVN as r6421.
This commit is contained in:
parent
f0933ecb1a
commit
439b1272b0
1 changed files with 4 additions and 4 deletions
|
@ -181,10 +181,10 @@ DialogStyleManager::DialogStyleManager(agi::Context *context)
|
||||||
CurrentList->Bind(wxEVT_KEY_DOWN, &DialogStyleManager::OnKeyDown, this);
|
CurrentList->Bind(wxEVT_KEY_DOWN, &DialogStyleManager::OnKeyDown, this);
|
||||||
|
|
||||||
// Select default item
|
// Select default item
|
||||||
wxString selected_style;
|
if (AssDialogue *dia = context->selectionController->GetActiveLine())
|
||||||
if (AssDialogue *dia = context->selectionController->GetActiveLine()) {
|
CurrentList->SetStringSelection(dia->Style);
|
||||||
selected_style = dia->Style;
|
else
|
||||||
}
|
CurrentList->SetSelection(0);
|
||||||
|
|
||||||
UpdateButtons();
|
UpdateButtons();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue