This fixes a segfault when trying to go to help a second
time, after closing the first window.
return;
}
+/* We use this so we can reuse an open help dialog window. */
+static Widget mainHelpDialog = NULL;
+
/******************************************************************************/
/* */
/* closeCB_mainHelpDialog */
XtPointer *cbs)
{
XtDestroyWidget(wid);
+ mainHelpDialog = NULL;
}
/******************************************************************************/
/******************************************************************************/
void DisplayHelpDialog(Widget wid, XtPointer client_data, XtPointer cbs)
{
- static Widget mainHelpDialog = NULL;
Widget parent;
int i;
Arg args[10];