Update of /cvsroot/mahogany/M/src/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv20464/src/gui
Modified Files:
wxMApp.cpp
Log Message:
don't assert about missing status bar on shutdown
Index: wxMApp.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/gui/wxMApp.cpp,v
retrieving revision 1.260
retrieving revision 1.261
diff -b -u -2 -r1.260 -r1.261
--- wxMApp.cpp 13 Jul 2003 21:20:32 -0000 1.260
+++ wxMApp.cpp 18 Jul 2003 00:55:56 -0000 1.261
@@ -1953,5 +1953,13 @@
StatusWidthsNotInSync, MAppStatus );
- CHECK_RET( m_topLevelFrame, _T("no top level frame to recreate status bar for") );
+ if ( !m_topLevelFrame )
+ {
+ // this may happen when we're shutting down, so just ignore it quietly in
+ // this case -- but complain loudly otherwise
+ ASSERT_MSG( IsShuttingDown(),
+ _T("no top level frame to recreate status bar for") );
+
+ return;
+ }
wxStatusBar *sbar = m_topLevelFrame->GetStatusBar();
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates