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: