]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/taskbar/tbtest.cpp
a fix for the last fix
[wxWidgets.git] / samples / taskbar / tbtest.cpp
index 98c06585364dd32265cdccfb4d8155fd6fca24b8..45896485f1e983c9174e3bfb07e57c9e9a258a1a 100644 (file)
@@ -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();
 }