(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:
Darkvater
2006-12-30 01:17:53 +00:00
parent faea6549ce
commit 990270fda9
18 changed files with 112 additions and 136 deletions

View File

@@ -749,7 +749,7 @@ static void StationViewWndProc(Window *w, WindowEvent *e)
case 9: {
SetDParam(0, w->window_number);
ShowQueryString(STR_STATION, STR_3030_RENAME_STATION_LOADING, 31, 180, w->window_class, w->window_number, CS_ALPHANUMERAL);
ShowQueryString(STR_STATION, STR_3030_RENAME_STATION_LOADING, 31, 180, w, CS_ALPHANUMERAL);
} break;
case 10: { /* Show a list of scheduled trains to this station */