X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=2553afb72532985f29a08c69a04c5cb9ef73543d;hb=609da796fb48d746f4672c00d2bd970834258b43;hp=3cd2f0ca7363666d5acf1d0a5d437188cbd4a329;hpb=67f4ae6657dcdff13ce494d64dcb936df3c78c1a;p=xboard.git diff --git a/backend.c b/backend.c index 3cd2f0c..2553afb 100644 --- a/backend.c +++ b/backend.c @@ -1485,6 +1485,8 @@ MatchEvent (int mode) NextMatchGame(); } +char *comboLine = NULL; // [HGM] recent: WinBoard's first-engine combobox line + void InitBackEnd3 P((void)) { @@ -1498,7 +1500,7 @@ InitBackEnd3 P((void)) free(programVersion); programVersion = (char*) malloc(8 + strlen(PACKAGE_STRING) + strlen(first.tidy)); sprintf(programVersion, "%s + %s", PACKAGE_STRING, first.tidy); - FloatToFront(&appData.recentEngineList, appData.firstChessProgram); + FloatToFront(&appData.recentEngineList, comboLine ? comboLine : appData.firstChessProgram); } if (appData.icsActive) {