Avoid error message when closing message
dialog with the X field from the WM. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
c7f73af494
commit
f1dec25f31
@ -31,6 +31,7 @@ public:
|
||||
const wxString& caption = wxMessageBoxCaptionStr,
|
||||
long style = wxOK|wxCENTRE,
|
||||
const wxPoint& pos = wxDefaultPosition);
|
||||
~wxMessageDialog();
|
||||
|
||||
int ShowModal();
|
||||
virtual bool Show( bool WXUNUSED(show) = true ) { return false; };
|
||||
|
@ -31,6 +31,7 @@ public:
|
||||
const wxString& caption = wxMessageBoxCaptionStr,
|
||||
long style = wxOK|wxCENTRE,
|
||||
const wxPoint& pos = wxDefaultPosition);
|
||||
~wxMessageDialog();
|
||||
|
||||
int ShowModal();
|
||||
virtual bool Show( bool WXUNUSED(show) = true ) { return false; };
|
||||
|
@ -95,6 +95,11 @@ wxMessageDialog::wxMessageDialog(wxWindow *parent,
|
||||
GTK_WINDOW(m_parent->m_widget));
|
||||
}
|
||||
|
||||
wxMessageDialog::~wxMessageDialog()
|
||||
{
|
||||
m_widget = NULL;
|
||||
}
|
||||
|
||||
int wxMessageDialog::ShowModal()
|
||||
{
|
||||
gint result = gtk_dialog_run(GTK_DIALOG(m_widget));
|
||||
|
@ -95,6 +95,11 @@ wxMessageDialog::wxMessageDialog(wxWindow *parent,
|
||||
GTK_WINDOW(m_parent->m_widget));
|
||||
}
|
||||
|
||||
wxMessageDialog::~wxMessageDialog()
|
||||
{
|
||||
m_widget = NULL;
|
||||
}
|
||||
|
||||
int wxMessageDialog::ShowModal()
|
||||
{
|
||||
gint result = gtk_dialog_run(GTK_DIALOG(m_widget));
|
||||
|
Loading…
Reference in New Issue
Block a user