X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xoptions.c;h=3151c31c0c8086b46969610be95d7f87c775e259;hb=292d1fc96afcdd5aececf3ec0da28c56bfb1a5a6;hp=7532dabf046d70f34afed784d75953483db287ee;hpb=dd050aef7bb911900c308e708c63f5b7006f9c0a;p=xboard.git diff --git a/xoptions.c b/xoptions.c index 7532dab..3151c31 100644 --- a/xoptions.c +++ b/xoptions.c @@ -246,6 +246,7 @@ int tcIncrement, tcMoves; void TimeControlPopDown() { if (!TimeControlUp) return; + previous = NULL; XtPopdown(TimeControlShell); XtDestroyWidget(TimeControlShell); TimeControlUp = False; @@ -568,6 +569,7 @@ Widget engDrawMoves, engThreshold, engRule, engRepeat; void EnginePopDown() { if (!EngineUp) return; + previous = NULL; XtPopdown(EngineShell); XtDestroyWidget(EngineShell); EngineUp = False; @@ -1126,6 +1128,7 @@ struct UciControl controlDesc[] = { void UciPopDown() { if (!UciUp) return; + previous = NULL; XtPopdown(UciShell); XtDestroyWidget(UciShell); UciUp = False; @@ -1324,6 +1327,7 @@ ChessProgramState *currentCps; void SettingsPopDown() { if (!SettingsUp) return; + previous = NULL; XtPopdown(SettingsShell); XtDestroyWidget(SettingsShell); SettingsUp = False;