Editor: Fix selected object property dropdown list

console-destruction
Sven Eberhardt 2016-08-27 19:56:46 -04:00
parent c98f99b427
commit 4f74d88d51
2 changed files with 3 additions and 3 deletions

View File

@ -625,7 +625,7 @@ bool C4ConsoleGUIState::CreateConsoleWindow(C4AbstractApp *app)
// Initial empty property page
auto sel = C4EditCursorSelection();
PropertyDlgUpdate(sel, false);
PropertyDlgUpdate(sel, true);
// Restore layout & show!
window->LoadGeometry();
@ -847,7 +847,7 @@ void C4ConsoleGUIState::PropertyDlgUpdate(C4EditCursorSelection &rSelection, boo
// Function update in script combo box
if (force_function_update)
{
auto suggestions = ::Console.GetScriptSuggestions(::Console.PropertyDlgObject, C4Console::MRU_Object);
auto suggestions = ::Console.GetScriptSuggestions(rSelection.GetObject(), C4Console::MRU_Object);
SetComboItems(ui.propertyInputBox, suggestions);
}
}

View File

@ -313,7 +313,7 @@ void C4EditCursor::UpdateStatusBar()
void C4EditCursor::OnSelectionChanged(bool by_objectlist)
{
::Console.PropertyDlgUpdate(selection, false);
::Console.PropertyDlgUpdate(selection, true);
if (!by_objectlist) ::Console.ObjectListDlg.Update(selection);
}