]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dlgcmn.cpp
removed extra semicolon
[wxWidgets.git] / src / common / dlgcmn.cpp
index 8430081563dd78102287bc3ce7bb9f90f03f240f..92417acc0e216b8395b6ad3b78c9732c098ae6b7 100644 (file)
@@ -52,12 +52,8 @@ BEGIN_EVENT_TABLE(wxDialogBase, wxTopLevelWindow)
     EVT_CLOSE(wxDialogBase::OnCloseWindow)
 
     EVT_CHAR_HOOK(wxDialogBase::OnCharHook)
     EVT_CLOSE(wxDialogBase::OnCloseWindow)
 
     EVT_CHAR_HOOK(wxDialogBase::OnCharHook)
-
-    WX_EVENT_TABLE_CONTROL_CONTAINER(wxDialogBase)
 END_EVENT_TABLE()
 
 END_EVENT_TABLE()
 
-WX_DELEGATE_TO_CONTROL_CONTAINER(wxDialogBase, wxTopLevelWindow)
-
 void wxDialogBase::Init()
 {
     m_returnCode = 0;
 void wxDialogBase::Init()
 {
     m_returnCode = 0;
@@ -68,8 +64,6 @@ void wxDialogBase::Init()
     // dialog controls from reaching the parent frame which is usually
     // undesirable and can lead to unexpected and hard to find bugs
     SetExtraStyle(GetExtraStyle() | wxWS_EX_BLOCK_EVENTS);
     // dialog controls from reaching the parent frame which is usually
     // undesirable and can lead to unexpected and hard to find bugs
     SetExtraStyle(GetExtraStyle() | wxWS_EX_BLOCK_EVENTS);
-
-    WX_INIT_CONTROL_CONTAINER();
 }
 
 // helper of GetParentForModalDialog()
 }
 
 // helper of GetParentForModalDialog()
@@ -80,7 +74,7 @@ static bool CanBeUsedAsParent(wxWindow *parent)
     return !parent->HasExtraStyle(wxWS_EX_TRANSIENT) &&
                 parent->IsShownOnScreen() &&
                     !wxPendingDelete.Member(parent) &&
     return !parent->HasExtraStyle(wxWS_EX_TRANSIENT) &&
                 parent->IsShownOnScreen() &&
                     !wxPendingDelete.Member(parent) &&
-                        parent->IsBeingDeleted();
+                        !parent->IsBeingDeleted();
 }
 
 wxWindow *wxDialogBase::GetParentForModalDialog(wxWindow *parent) const
 }
 
 wxWindow *wxDialogBase::GetParentForModalDialog(wxWindow *parent) const