(svn r18899) -Fix: the default button was enabled even when the ENABLE_DEFAULT flag wasn't set

This commit is contained in:
rubidium 2010-01-23 19:30:03 +00:00
parent 4d184e9b16
commit 2b82db72ef
1 changed files with 3 additions and 1 deletions

View File

@ -1252,7 +1252,9 @@ struct QueryStringWindow : public QueryStringBaseWindow
virtual void UpdateWidgetSize(int widget, Dimension *size, const Dimension &padding, Dimension *fill, Dimension *resize)
{
if (widget == QUERY_STR_WIDGET_DEFAULT && (this->flags & QSF_ENABLE_DEFAULT) == 0) {
this->GetWidget<NWidgetCore>(widget)->SetFill(0, 1);
/* We don't want this widget to show! */
fill->width = 0;
resize->width = 0;
size->width = 0;
}
}