From: Robin Dunn Date: Thu, 17 Jun 2004 19:51:11 +0000 (+0000) Subject: Hide the dialog after running it as it may be a bit of time before it X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b25630fb6c870cc2bd2b465b45e1788a04391e24 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 --- 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: