X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xgamelist.c;h=41a43cecb4851e48123427de348d5b3432fb257d;hb=a7db862b2f44d23b358a1319cd8a374cf88c24fd;hp=d2cf8bd9244191cf8eac08c98674b9d490e063e6;hpb=ca63c52d91e298f2b7d70535b8e5a923e4f956ac;p=xboard.git diff --git a/xgamelist.c b/xgamelist.c index d2cf8bd..41a43ce 100644 --- a/xgamelist.c +++ b/xgamelist.c @@ -516,6 +516,7 @@ ShowGameListProc(w, event, prms, nprms) XtSetArg(args[j], XtNleftBitmap, xMarkPixmap); j++; XtSetValues(XtNameToWidget(menuBarWidget, "menuView.Show Game List"), args, j); + GameListHighlight(lastLoadGameNumber); } void @@ -623,7 +624,7 @@ int SaveGameListAsText(FILE *f) ListGame * lg = (ListGame *) gameList.head; int nItem; - if( ((ListGame *) gameList.tailPred)->number <= 0 ) { + if( !glc || ((ListGame *) gameList.tailPred)->number <= 0 ) { DisplayError("Game list not loaded or empty", 0); return False; }