From 3ccae3ba9bc59d76ca405f284dea44ba7f1d03b0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 23 Jun 2003 19:43:27 +0000 Subject: [PATCH] added missing Skip() in OnIdle() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/thread/thread.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/thread/thread.cpp b/samples/thread/thread.cpp index f82f33a511..1fc119359c 100644 --- a/samples/thread/thread.cpp +++ b/samples/thread/thread.cpp @@ -579,7 +579,7 @@ void MyFrame::OnPauseThread(wxCommandEvent& WXUNUSED(event) ) } // set the frame title indicating the current number of threads -void MyFrame::OnIdle(wxIdleEvent &event) +void MyFrame::OnIdle(wxIdleEvent& event) { wxCriticalSectionLocker enter(wxGetApp().m_critsect); @@ -600,6 +600,8 @@ void MyFrame::OnIdle(wxIdleEvent &event) wxLogStatus(this, wxT("%u threads total, %u running."), nCount, nRunning); } //else: avoid flicker - don't print anything + + event.Skip(); } void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event) ) -- 2.47.2