Changeset - r14334:e306ac295dff
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2010-01-23 19:30:03
rubidium@openttd.org
(svn r18899) -Fix: the default button was enabled even when the ENABLE_DEFAULT flag wasn't set
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/misc_gui.cpp
Show inline comments
 
@@ -1252,7 +1252,9 @@ struct QueryStringWindow : public QueryS
 
	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;
 
		}
 
	}
0 comments (0 inline, 0 general)