Update of /cvsroot/sharedaemon/ui-wx/src
In directory sc8-pr-cvs1:/tmp/cvs-serv2848
Modified Files:
MainDlg.cpp
Log Message:
Faster shutdown
Index: MainDlg.cpp
===================================================================
RCS file: /cvsroot/sharedaemon/ui-wx/src/MainDlg.cpp,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -d -r1.53 -r1.54
--- MainDlg.cpp 30 Dec 2003 10:12:59 -0000 1.53
+++ MainDlg.cpp 30 Dec 2003 10:15:46 -0000 1.54
@@ -493,8 +493,6 @@
/* corresponding value from config object). If so, display a messagebox, */
/* and abort shutdown if No is clicked. Otherwise, if prompt_exit is false */
/* or Yes is clicked in confirmation dialog, hide and destroy the frame. */
-/* Hiding is needed to make shutdown process seem faster and avoid any */
-/* delays Destroy() call produces. */
/******************************************************************************/
void CMainDlg::OnCloseWindow(wxCloseEvent &event){
bool prompt_exit;
@@ -510,9 +508,7 @@
return;
}
}
-
- Hide();
- Destroy();
+ event.Skip();
}
/********************************************************* ConnectToAnyServer */
|