mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r17966) -Fix (r17965): The Default button should be disabled in some cases rather than the Ok button.
This commit is contained in:
parent
7a0814c6cc
commit
076d6e696b
|
@ -1361,7 +1361,7 @@ struct QueryStringWindow : public QueryStringBaseWindow
|
||||||
|
|
||||||
void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *resize)
|
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);
|
this->GetWidget<NWidgetCore>(widget)->SetFill(false, true);
|
||||||
size->width = 0;
|
size->width = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue