diff options
author | alberth <alberth@openttd.org> | 2009-11-03 20:21:49 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-11-03 20:21:49 +0000 |
commit | 076d6e696b28df5d4e1aac788fe9dbccb08aa052 (patch) | |
tree | fd8e825c4122c346081bd94cbb0026972d4250e2 | |
parent | 7a0814c6ccf4ed4bb60ffe538ae3f0b0c4ffc626 (diff) | |
download | openttd-076d6e696b28df5d4e1aac788fe9dbccb08aa052.tar.xz |
(svn r17966) -Fix (r17965): The Default button should be disabled in some cases rather than the Ok button.
-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; } |