mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user