From 076d7d40054883a944bc2f7da8df1e94738be6e6 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 21 Apr 2000 19:17:34 +0000 Subject: [PATCH] Fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/taskbar/tbtest.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/samples/taskbar/tbtest.cpp b/samples/taskbar/tbtest.cpp index 98c0658536..45896485f1 100644 --- a/samples/taskbar/tbtest.cpp +++ b/samples/taskbar/tbtest.cpp @@ -111,6 +111,11 @@ void MyTaskBarIcon::OnMenuRestore(wxCommandEvent& ) void MyTaskBarIcon::OnMenuExit(wxCommandEvent& ) { dialog->Close(TRUE); + + // Nudge wxWindows into destroying the dialog, since + // with a hidden window no messages will get sent to put + // it into idle processing. + wxGetApp().ProcessIdle(); }