(svn r7637) -Codechange: Change ShowQueryString to use a window pointer as a parent. If the
query has no parent (eg give money, rename waypoint), the global function HandleOnEditText is used.
This commit is contained in:
@@ -436,7 +436,7 @@ static void NewGRFWndProc(Window *w, WindowEvent *e)
|
||||
if (WP(w, newgrf_d).sel == NULL) break;
|
||||
|
||||
GRFBuildParamList(buff, WP(w, newgrf_d).sel, lastof(buff));
|
||||
ShowQueryString(BindCString(buff), STR_NEWGRF_PARAMETER_QUERY, 63, 250, w->window_class, w->window_number, CS_ALPHANUMERAL);
|
||||
ShowQueryString(BindCString(buff), STR_NEWGRF_PARAMETER_QUERY, 63, 250, w, CS_ALPHANUMERAL);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user