]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed MSW crashes when choosing Exit in popup menu
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 18 Jul 2004 21:58:28 +0000 (21:58 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 18 Jul 2004 21:58:28 +0000 (21:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/taskbar/tbtest.cpp

index 00835d7a7d8377a837f0798fe65670104f16fb96..7b6a80b8342c10c2809259ff2f5bfb5f784250f8 100644 (file)
@@ -121,11 +121,6 @@ void MyTaskBarIcon::OnMenuRestore(wxCommandEvent& )
 void MyTaskBarIcon::OnMenuExit(wxCommandEvent& )
 {
     dialog->Close(true);
-
-    // Nudge wxWidgets into destroying the dialog, since
-    // with a hidden window no messages will get sent to put
-    // it into idle processing.
-    wxGetApp().ProcessIdle();
 }
 
 void MyTaskBarIcon::OnMenuSetNewIcon(wxCommandEvent&)