]> git.saurik.com Git - wxWidgets.git/commitdiff
Avoid error message when closing message
authorRobert Roebling <robert@roebling.de>
Sat, 27 Nov 2004 23:21:12 +0000 (23:21 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 27 Nov 2004 23:21:12 +0000 (23:21 +0000)
   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

include/wx/gtk/msgdlg.h
include/wx/gtk1/msgdlg.h
src/gtk/msgdlg.cpp
src/gtk1/msgdlg.cpp

index 1f142a6dce5cb35c10c7717293dd93dc31f1663b..31bbf814cf5ed6aa55fc277b13089b13c702a83e 100644 (file)
@@ -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; };
index 1f142a6dce5cb35c10c7717293dd93dc31f1663b..31bbf814cf5ed6aa55fc277b13089b13c702a83e 100644 (file)
@@ -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; };
index 4ee201a9f2a498295bcc12150d554d09392c0878..66a4b47b666dce093b9583f993bdd2b16b23fa57 100644 (file)
@@ -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));
index 4ee201a9f2a498295bcc12150d554d09392c0878..66a4b47b666dce093b9583f993bdd2b16b23fa57 100644 (file)
@@ -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));