From b25630fb6c870cc2bd2b465b45e1788a04391e24 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 17 Jun 2004 19:51:11 +0000 Subject: [PATCH] Hide the dialog after running it as it may be a bit of time before it is destroyed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/colordlg.cpp | 3 ++- src/gtk1/colordlg.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gtk/colordlg.cpp b/src/gtk/colordlg.cpp index fa41faa4f8..9e676a6fa8 100644 --- a/src/gtk/colordlg.cpp +++ b/src/gtk/colordlg.cpp @@ -61,7 +61,8 @@ int wxColourDialog::ShowModal() ColourDataToDialog(); gint result = gtk_dialog_run(GTK_DIALOG(m_widget)); - + gtk_widget_hide(m_widget); + switch (result) { default: diff --git a/src/gtk1/colordlg.cpp b/src/gtk1/colordlg.cpp index fa41faa4f8..9e676a6fa8 100644 --- a/src/gtk1/colordlg.cpp +++ b/src/gtk1/colordlg.cpp @@ -61,7 +61,8 @@ int wxColourDialog::ShowModal() ColourDataToDialog(); gint result = gtk_dialog_run(GTK_DIALOG(m_widget)); - + gtk_widget_hide(m_widget); + switch (result) { default: -- 2.45.2