X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xoptions.c;h=3151c31c0c8086b46969610be95d7f87c775e259;hb=17049411c26637cd99e4aaf43ee2f11ef468e00e;hp=7532dabf046d70f34afed784d75953483db287ee;hpb=adbb470a94d7b33d67f3edde6d75032089eb8f80;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;