diff options
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<NWidgetCore>(widget)->SetFill(0, 1); + /* We don't want this widget to show! */ + fill->width = 0; + resize->width = 0; size->width = 0; } } |