diff options
author | frosch <frosch@openttd.org> | 2013-06-15 15:31:04 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2013-06-15 15:31:04 +0000 |
commit | ee4e68bd5e4882397bc023040a2977047d22ccb7 (patch) | |
tree | 79ae645add9d9321b815287a2a68d7850100117f /src/ai | |
parent | 5cb174c6b86c58b2ff6ec0d245e546328fae6480 (diff) | |
download | openttd-ee4e68bd5e4882397bc023040a2977047d22ccb7.tar.xz |
(svn r25413) -Fix-ish: Suppress focussing editboxes which are not visible.
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/ai_gui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp index 99f806038..d172780a8 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -1061,6 +1061,8 @@ struct AIDebugWindow : public Window { this->querystrings[WID_AID_BREAK_STR_EDIT_BOX] = &this->break_editbox; + SetWidgetsDisabledState(!this->show_break_box, WID_AID_BREAK_STR_ON_OFF_BTN, WID_AID_BREAK_STR_EDIT_BOX, WID_AID_MATCH_CASE_BTN, WIDGET_LIST_END); + /* Restore the break string value from static variable */ this->break_editbox.text.Assign(this->break_string); |