X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwinboard.c;h=9cdd4b9c55e8aac1512d3e12f57359376c9fb57c;hb=f6c255363e0b0e53571b95b8cb065a0f1758d2fb;hp=9ce542829252fe6b7a57f07d96383218d8178e78;hpb=f4cc69edd466fda83f84629f40c086dd2a249616;p=xboard.git diff --git a/winboard/winboard.c b/winboard/winboard.c index 9ce5428..9cdd4b9 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -497,6 +497,7 @@ TranslateMenus(int addLanguage) void RecentEngineMenu (char *s) { + if(appData.icsActive) return; if(appData.recentEngines > 0 && *s) { // feature is on, and list non-empty HMENU mainMenu = GetMenu(hwndMain); HMENU subMenu = GetSubMenu(mainMenu, 5); // Engine menu @@ -5468,7 +5469,7 @@ WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) default: if(wmId >= IDM_RecentEngines && wmId < IDM_RecentEngines + appData.recentEngines) - RecentEngineEvent(wmId - 3000); + RecentEngineEvent(wmId - IDM_RecentEngines); else if(wmId > IDM_English && wmId < IDM_English+20) { LoadLanguageFile(languageFile[wmId - IDM_English - 1]); @@ -6181,6 +6182,7 @@ StartupDialog(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) safeStrCpy(buf, "/fcp=", sizeof(buf)/sizeof(buf[0]) ); GetDlgItemText(hDlg, OPT_ChessEngineName, buf + strlen(buf), sizeof(buf) - strlen(buf)); p = buf; + comboLine = strdup(p+5); // [HGM] recent: remember complete line of first combobox ParseArgs(StringGet, &p); safeStrCpy(buf, singleList ? "/fcp=" : "/scp=", sizeof(buf)/sizeof(buf[0]) ); GetDlgItemText(hDlg, OPT_SecondChessEngineName, buf + strlen(buf), sizeof(buf) - strlen(buf));