X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwsettings.c;h=ba9488b3ed8e53f609f3587a1eb55f074167adbe;hb=ede276c731daeaa794b9741fff680f1e97fbb911;hp=6cf8d59aa2070a455f0c9fe19f2986bb761a1875;hpb=47ab0b03122be14ab46fc307e936178b8e62cc22;p=xboard.git diff --git a/winboard/wsettings.c b/winboard/wsettings.c index 6cf8d59..ba9488b 100644 --- a/winboard/wsettings.c +++ b/winboard/wsettings.c @@ -893,6 +893,10 @@ void PseudoOK(HWND hDlg) if(autoinc) appData.loadGameIndex = appData.loadPositionIndex = -(twice + 1); else if(!appData.loadGameFile[0]) appData.loadGameIndex = -2*twice; // kludge to pass value of "twice" for use in GUI book + if(!autoinc && !twice) { // prevent auto-inc being remembered in index value if checkboxes not ticked + if(appData.loadGameIndex < 0) appData.loadGameIndex = 0; + if(appData.loadPositionIndex < 0) appData.loadPositionIndex = 0; + } if(swiss) { appData.defaultMatchGames = 1; appData.tourneyType = -1; } }