Update of /cvsroot/sharedaemon/ui-wx/src
In directory sc8-pr-cvs1:/tmp/cvs-serv32627
Modified Files:
SysTray.cpp
Log Message:
Use mainframe->Close() instead of delete operator to exit app from systray (cleaner this way)
Index: SysTray.cpp
===================================================================
RCS file: /cvsroot/sharedaemon/ui-wx/src/SysTray.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- SysTray.cpp 20 Nov 2003 12:02:20 -0000 1.9
+++ SysTray.cpp 23 Nov 2003 09:51:46 -0000 1.10
@@ -100,13 +100,7 @@
* This method will force the application to exit.
*/
void CSysTray::Quit(wxCommandEvent &event) {
- /**
- * Altough wxWindows documentation recommends using Destroy() for
- * deleting frames, we use delete operator here, simply because
- * Destroy() can take up to several seconds to take effect, and
- * it might look the quit command didn't have any effect
- */
- delete mainframe;
+ mainframe->Close();
}
void CSysTray::OnLButtonDClick() {
|