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

This commit is contained in:
alberth 2009-11-03 20:21:49 +00:00
parent 7a0814c6cc
commit 076d6e696b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}