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

pull/155/head
rubidium 15 years ago
parent 1cc09dfec1
commit 257c076045

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

Loading…
Cancel
Save