changeset 20331:3690325f16da draft

(svn r25283) -Add: When opening the object-build window, make the selected object visible again in the selector (sbr).
author alberth <alberth@openttd.org>
date Fri, 24 May 2013 19:12:45 +0000
parents c4aef8c3f24a
children cf9b1acdacbd
files src/object_gui.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/object_gui.cpp
+++ b/src/object_gui.cpp
@@ -82,6 +82,7 @@
 		NWidgetMatrix *matrix = this->GetWidget<NWidgetMatrix>(WID_BO_SELECT_MATRIX);
 		matrix->SetScrollbar(this->GetScrollbar(WID_BO_SELECT_SCROLL));
 		matrix->SetCount(ObjectClass::Get(_selected_object_class)->GetUISpecCount());
+		if (_selected_object_index != -1) matrix->SetClicked(_selected_object_index);
 	}
 
 	virtual ~BuildObjectWindow()