From 203ec4242ba623e2d8ce5ab7ef56bdead3001689 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 5 Jun 2011 15:32:50 +0000 Subject: [PATCH] adding another assert for tracking modalSession problems git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/evtloop.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/osx/cocoa/evtloop.mm b/src/osx/cocoa/evtloop.mm index 91df515ef9..c9ac5ee75d 100644 --- a/src/osx/cocoa/evtloop.mm +++ b/src/osx/cocoa/evtloop.mm @@ -333,6 +333,7 @@ void wxGUIEventLoop::BeginModalSession( wxWindow* modalWindow ) m_dummyWindow = nsnow; } m_modalSession = [NSApp beginModalSessionForWindow:nsnow]; + wxASSERT_MSG(m_modalSession != NULL, "modal session couldn't be started"); } void wxGUIEventLoop::EndModalSession() -- 2.45.2