forked from mirror/OpenTTD
(svn r24726) -Codechange: Move editbox mouseloop handling to Window class.
This commit is contained in:
@@ -1620,6 +1620,16 @@ static void DecreaseWindowCounters()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Handle editboxes */
|
||||
for (uint i = 0; i < w->nested_array_size; i++) {
|
||||
NWidgetBase *nwid = w->nested_array[i];
|
||||
if (nwid != NULL && nwid->type == WWT_EDITBOX) {
|
||||
QueryString *query = dynamic_cast<QueryString*>(w);
|
||||
if (query != NULL) query->HandleEditBox(w, i);
|
||||
}
|
||||
}
|
||||
|
||||
w->OnMouseLoop();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user