From 3dd1a6ad2d326ba1c98a11074ec270fda401db9a Mon Sep 17 00:00:00 2001 From: planetmaker Date: Tue, 18 Mar 2014 20:53:34 +0000 Subject: [PATCH] (svn r26416) -Fix [FS#5947]: Shares button state was not appropriately updated when switching setting or company (frosch) --- src/company_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/company_gui.cpp b/src/company_gui.cpp index 1cf38fc521dc2..bbbf0950b5811 100644 --- a/src/company_gui.cpp +++ b/src/company_gui.cpp @@ -2013,7 +2013,7 @@ struct CompanyWindow : Window NWidgetStacked *wi = this->GetWidget(WID_C_SELECT_BUTTONS); if (plane != wi->shown_plane) { wi->SetDisplayedPlane(plane); - this->SetDirty(); + this->InvalidateData(); return; }