Check for potentially NULL m_focus (Patch #1187992)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33838 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e4f0ea6b45
commit
dc0846f745
@ -289,9 +289,10 @@ void wxPopupTransientWindow::Popup(wxWindow *winFocus)
|
||||
m_child->Connect(wxEVT_DESTROY,
|
||||
wxWindowDestroyEventHandler(wxPopupTransientWindow::OnDestroy),
|
||||
NULL, this);
|
||||
m_focus->Connect(wxEVT_DESTROY,
|
||||
wxWindowDestroyEventHandler(wxPopupTransientWindow::OnDestroy),
|
||||
NULL, this);
|
||||
if (m_focus)
|
||||
m_focus->Connect(wxEVT_DESTROY,
|
||||
wxWindowDestroyEventHandler(wxPopupTransientWindow::OnDestroy),
|
||||
NULL, this);
|
||||
}
|
||||
|
||||
bool wxPopupTransientWindow::Show( bool show )
|
||||
|
Loading…
Reference in New Issue
Block a user