Prevent double PopDowns
[xboard.git] / dialogs.c
index d409164..16cf978 100644 (file)
--- a/dialogs.c
+++ b/dialogs.c
@@ -236,7 +236,7 @@ MatchOK (int n)
     if(!CreateTourney(tfName) || matchMode) return matchMode || !appData.participants[0];
     PopDown(TransientDlg); // early popdown to prevent FreezeUI called through MatchEvent from causing XtGrab warning
     MatchEvent(2); // start tourney
-    return 1;
+    return FALSE;  // no double PopDown!
 }
 
 static Option matchOptions[] = {
@@ -1074,7 +1074,7 @@ PutText (char *text, int pos)
 }
 
 void
-InputBoxPopup ()
+ICSInputBoxPopUp ()
 {
     MarkMenu("ICS Input Box", InputBoxDlg);
     if(GenericPopUp(boxOptions, _("ICS input box"), InputBoxDlg))
@@ -1109,7 +1109,7 @@ BoxAutoPopUp (char *buf)
                SetWidgetText(&boxOptions[0], newText, InputBoxDlg);
                if(shellUp[InputBoxDlg]) HardSetFocus (&boxOptions[0]); //why???
            } else icsText = buf; // box did not exist: make sure it pops up with char in it
-           InputBoxPopup();
+           ICSInputBoxPopUp();
        } else PopUpMoveDialog(*buf);
 }
 
@@ -1146,7 +1146,7 @@ InstallOK (int n)
 {
     PopDown(TransientDlg); // early popdown, to allow FreezeUI to instate grab
     if(engineChoice[0] == engineNr[0][0])  Load(&first, 0); else Load(&second, 1);
-    return 1;
+    return FALSE; // no double PopDown!
 }
 
 static Option installOptions[] = {