From 2b82db72efa7d148699cbdbcffd2e7e2a1a75f20 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 23 Jan 2010 19:30:03 +0000 Subject: [PATCH] (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 1b71828f43..6ecfe45b55 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; } }