(svn r24726) -Codechange: Move editbox mouseloop handling to Window class.

This commit is contained in:
frosch
2012-11-13 21:46:33 +00:00
parent 2614ed18f9
commit 137adb3496
13 changed files with 10 additions and 78 deletions

View File

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