mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 09:59:10 +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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user