Show current dict in dropdown in game info mode. (Had disappeared in recent changes.)

This commit is contained in:
ehouse 2006-04-22 14:19:21 +00:00
parent dcc07ad95b
commit ffc4de8c47

View file

@ -217,6 +217,12 @@ loadFromGameInfo( HWND hDlg, CEAppGlobals* globals, GameInfoState* giState )
SendDlgItemMessage( giState->hDlg, IDC_DICTCOMBO, CB_SETCURSEL,
0, 0L );
}
} else {
wchar_t wPath[CE_MAX_PATH_LEN+1];
XP_ASSERT( gi->dictName[0] != '\0' );
MultiByteToWideChar( CP_ACP, MB_PRECOMPOSED, gi->dictName, -1,
wPath, sizeof(wPath)/sizeof(wPath[0]) );
(void)addDictToMenu( wPath, 0, giState );
}
#endif