diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/industry_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index 6afe6d8e7..3e8d06515 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -259,7 +259,8 @@ class BuildIndustryWindow : public Window { /** Update status of the fund and display-chain widgets. */ 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: |