]> git.saurik.com Git - wxWidgets.git/commitdiff
added missing Skip() in OnIdle()
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 23 Jun 2003 19:43:27 +0000 (19:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 23 Jun 2003 19:43:27 +0000 (19:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/thread/thread.cpp

index f82f33a5115ab3df2e8eacb6848afc408607d9fc..1fc119359c0b8dd1abac5115b14d962b4ab78aad 100644 (file)
@@ -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(wxIdleEventevent)
 {
     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) )