From 2b82db72efa7d148699cbdbcffd2e7e2a1a75f20 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 23 Jan 2010 19:30:03 +0000 Subject: (svn r18899) -Fix: the default button was enabled even when the ENABLE_DEFAULT flag wasn't set --- src/misc_gui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 1b71828f4..6ecfe45b5 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -1252,7 +1252,9 @@ struct QueryStringWindow : public QueryStringBaseWindow virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize) { if (widget == QUERY_STR_WIDGET_DEFAULT && (this->flags & QSF_ENABLE_DEFAULT) == 0) { - this->GetWidget(widget)->SetFill(0, 1); + /* We don't want this widget to show! */ + fill->width = 0; + resize->width = 0; size->width = 0; } } -- cgit v1.2.3-70-g09d2