mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtcreate: Avoid trying to reuse closed help window
This fixes a segfault when trying to go to help a second time, after closing the first window.
This commit is contained in:
parent
4773d68153
commit
71962e580d
1 changed files with 4 additions and 1 deletions
|
@ -220,6 +220,9 @@ void activateCB_edit_icon (Widget wid, XtPointer client_data,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* We use this so we can reuse an open help dialog window. */
|
||||||
|
static Widget mainHelpDialog = NULL;
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
/* */
|
/* */
|
||||||
/* closeCB_mainHelpDialog */
|
/* closeCB_mainHelpDialog */
|
||||||
|
@ -234,6 +237,7 @@ void closeCB_mainHelpDialog(Widget wid, XtPointer client_data,
|
||||||
XtPointer *cbs)
|
XtPointer *cbs)
|
||||||
{
|
{
|
||||||
XtDestroyWidget(wid);
|
XtDestroyWidget(wid);
|
||||||
|
mainHelpDialog = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
@ -248,7 +252,6 @@ void closeCB_mainHelpDialog(Widget wid, XtPointer client_data,
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
void DisplayHelpDialog(Widget wid, XtPointer client_data, XtPointer cbs)
|
void DisplayHelpDialog(Widget wid, XtPointer client_data, XtPointer cbs)
|
||||||
{
|
{
|
||||||
static Widget mainHelpDialog = NULL;
|
|
||||||
Widget parent;
|
Widget parent;
|
||||||
int i;
|
int i;
|
||||||
Arg args[10];
|
Arg args[10];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue