diff options
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r-- | src/misc_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 6a156cbbc..ac91fe6c1 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -1361,7 +1361,7 @@ struct QueryStringWindow : public QueryStringBaseWindow void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *resize) { - if (widget == QUERY_STR_WIDGET_OK && (this->flags & QSF_ENABLE_DEFAULT) == 0) { + if (widget == QUERY_STR_WIDGET_DEFAULT && (this->flags & QSF_ENABLE_DEFAULT) == 0) { this->GetWidget<NWidgetCore>(widget)->SetFill(false, true); size->width = 0; } |