File diff r27942:f7389062d120 → r27943:23c15817f0a5
src/rail_gui.cpp
Show inline comments
 
@@ -1127,12 +1127,14 @@ public:
 
		return ES_HANDLED;
 
	}
 

	
 
	void OnEditboxChanged(int wid) override
 
	void OnEditboxChanged(int widget) override
 
	{
 
		string_filter.SetFilterTerm(this->filter_editbox.text.buf);
 
		this->station_classes.SetFilterState(!string_filter.IsEmpty());
 
		this->station_classes.ForceRebuild();
 
		this->InvalidateData();
 
		if (widget == WID_BRAS_FILTER_EDITBOX) {
 
			string_filter.SetFilterTerm(this->filter_editbox.text.buf);
 
			this->station_classes.SetFilterState(!string_filter.IsEmpty());
 
			this->station_classes.ForceRebuild();
 
			this->InvalidateData();
 
		}
 
	}
 

	
 
	void OnPaint() override