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
This commit is contained in:
@@ -61,7 +61,8 @@ int wxColourDialog::ShowModal()
|
|||||||
ColourDataToDialog();
|
ColourDataToDialog();
|
||||||
|
|
||||||
gint result = gtk_dialog_run(GTK_DIALOG(m_widget));
|
gint result = gtk_dialog_run(GTK_DIALOG(m_widget));
|
||||||
|
gtk_widget_hide(m_widget);
|
||||||
|
|
||||||
switch (result)
|
switch (result)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
|
@@ -61,7 +61,8 @@ int wxColourDialog::ShowModal()
|
|||||||
ColourDataToDialog();
|
ColourDataToDialog();
|
||||||
|
|
||||||
gint result = gtk_dialog_run(GTK_DIALOG(m_widget));
|
gint result = gtk_dialog_run(GTK_DIALOG(m_widget));
|
||||||
|
gtk_widget_hide(m_widget);
|
||||||
|
|
||||||
switch (result)
|
switch (result)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
|
Reference in New Issue
Block a user