]> git.saurik.com Git - wxWidgets.git/commitdiff
adding another assert for tracking modalSession problems
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 5 Jun 2011 15:32:50 +0000 (15:32 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 5 Jun 2011 15:32:50 +0000 (15:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/evtloop.mm

index 91df515ef97945f5c12c63e06e93178528fab15a..c9ac5ee75d8216e057500322aa0fbf3d3b028843 100644 (file)
@@ -333,6 +333,7 @@ void wxGUIEventLoop::BeginModalSession( wxWindow* modalWindow )
         m_dummyWindow = nsnow;
     }
     m_modalSession = [NSApp beginModalSessionForWindow:nsnow];
         m_dummyWindow = nsnow;
     }
     m_modalSession = [NSApp beginModalSessionForWindow:nsnow];
+    wxASSERT_MSG(m_modalSession != NULL, "modal session couldn't be started");
 }
 
 void wxGUIEventLoop::EndModalSession()
 }
 
 void wxGUIEventLoop::EndModalSession()