(svn r20387) -Fix [FS#4000]: Allow the industry-chain button for non-fundable industries, and disallow for the 'many random industries'.

pull/155/head
alberth 14 years ago
parent 03e8fe7c0e
commit 9fed86a814

@ -259,7 +259,8 @@ class BuildIndustryWindow : public Window {
/** Update status of the fund and display-chain widgets. */ /** Update status of the fund and display-chain widgets. */
void SetButtons() void SetButtons()
{ {
this->SetWidgetsDisabledState(!this->enabled[this->selected_index], DPIW_DISPLAY_WIDGET, DPIW_FUND_WIDGET, WIDGET_LIST_END); this->SetWidgetDisabledState(DPIW_FUND_WIDGET, this->selected_type != INVALID_INDUSTRYTYPE && !this->enabled[this->selected_index]);
this->SetWidgetDisabledState(DPIW_DISPLAY_WIDGET, this->selected_type == INVALID_INDUSTRYTYPE && this->enabled[this->selected_index]);
} }
public: public:

Loading…
Cancel
Save