From 4037251c82aa64b7cf85c2460aea9401b6975f35 Mon Sep 17 00:00:00 2001 From: alberth Date: Fri, 24 May 2013 19:12:45 +0000 Subject: (svn r25283) -Add: When opening the object-build window, make the selected object visible again in the selector (sbr). --- src/object_gui.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/object_gui.cpp b/src/object_gui.cpp index 429f7a40f..4af9c6f69 100644 --- a/src/object_gui.cpp +++ b/src/object_gui.cpp @@ -82,6 +82,7 @@ public: NWidgetMatrix *matrix = this->GetWidget(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() -- cgit v1.2.3-54-g00ecf