(svn r26416) -Fix [FS#5947]: Shares button state was not appropriately updated when switching setting or company (frosch)

This commit is contained in:
planetmaker
2014-03-18 20:53:34 +00:00
parent 01d532d9dd
commit f44d54a9e4

View File

@@ -2013,7 +2013,7 @@ struct CompanyWindow : Window
NWidgetStacked *wi = this->GetWidget<NWidgetStacked>(WID_C_SELECT_BUTTONS); NWidgetStacked *wi = this->GetWidget<NWidgetStacked>(WID_C_SELECT_BUTTONS);
if (plane != wi->shown_plane) { if (plane != wi->shown_plane) {
wi->SetDisplayedPlane(plane); wi->SetDisplayedPlane(plane);
this->SetDirty(); this->InvalidateData();
return; return;
} }