]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/window.cpp
another makefile updated
[wxWidgets.git] / src / motif / window.cpp
index 339540128b110dfbf175253dce97da9b688d309f..f7ed6cb2bb455037f1c9c3b600e6d7e9850d6d15 100644 (file)
@@ -183,7 +183,8 @@ void wxWindow::Init()
     m_winCaptured = FALSE;
 
     m_isShown = TRUE;
-
+    m_isBeingDeleted = FALSE;
+    
     m_hScrollBar =
     m_vScrollBar =
     m_borderWidget =
@@ -360,6 +361,8 @@ bool wxWindow::Create(wxWindow *parent, wxWindowID id,
 // Destructor
 wxWindow::~wxWindow()
 {
+    m_isBeingDeleted = TRUE;
+    
     // Motif-specific actions first
     WXWidget wMain = GetMainWidget();
     if ( wMain )