From ee4e68bd5e4882397bc023040a2977047d22ccb7 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 15 Jun 2013 15:31:04 +0000 Subject: (svn r25413) -Fix-ish: Suppress focussing editboxes which are not visible. --- src/ai/ai_gui.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ai') 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); -- cgit v1.2.3-70-g09d2