]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dialog.cpp
reworked link anchors and link text
[wxWidgets.git] / src / gtk / dialog.cpp
index bb0f74e2efcee2dc2bc8e7c500681757380915d7..ebc45066651b51c4f00cb2c2ede4df8b9201b4e2 100644 (file)
@@ -71,11 +71,21 @@ bool wxDialog::Show( bool show )
 
     bool ret = wxWindow::Show( show );
 
-    if (show) InitDialog();
+    if (show)
+        InitDialog();
 
     return ret;
 }
 
+wxDialog::~wxDialog()
+{
+    m_isBeingDeleted = true;
+
+    // if the dialog is modal, this will end its event loop
+    if ( IsModal() )
+        EndModal(wxID_CANCEL);
+}
+
 bool wxDialog::IsModal() const
 {
     return m_modalShowing;