From: Thomas H. <pol...@us...> - 2006-08-18 19:08:16
|
Update of /cvsroot/smartwin/SmartWin/include/smartwin/widgets In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv18529/include/smartwin/widgets Modified Files: WidgetModalDialog.h Log Message: Fixed so that the WidgetModalDialog can be closed and is registered and removed from the list of application widgets! Index: WidgetModalDialog.h =================================================================== RCS file: /cvsroot/smartwin/SmartWin/include/smartwin/widgets/WidgetModalDialog.h,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -r1.18 -r1.19 --- WidgetModalDialog.h 5 May 2006 17:14:42 -0000 1.18 +++ WidgetModalDialog.h 18 Aug 2006 19:08:11 -0000 1.19 @@ -189,6 +189,9 @@ template< class EventHandlerClass, class MessageMapPolicy > int WidgetModalDialog< EventHandlerClass, MessageMapPolicy >::createDialog( unsigned resourceId ) { + // Must register the widget in order not to close app when this closes...! + Application::instance().registerWidget( this ); + // this will not return until the dialog is closed by calling endDialog() with // a retv // |