Fix popdown of Error/Help dialog through window-close button
[xboard.git] / gtk / xoptions.c
index 9e27c7e..e9e7a0a 100644 (file)
@@ -861,7 +861,7 @@ gboolean GenericPopDown(w, resptype, gdata)
     /* cancel pressed */
     {
        if(dlg == BoardWindow) ExitEvent(0);
-       PopDown(dlg);
+       if(dlg == FatalDlg) ErrorOK(1); else PopDown(dlg);
     }
     shells[dlg] = sh; // restore
     return TRUE;