(svn r17966) -Fix (r17965): The Default button should be disabled in some cases rather than the Ok button.

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
alberth 15 years ago
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…
Cancel
Save