timer no longer returns IsRunning() after a
one shot timer has fired. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -41,7 +41,12 @@ extern "C" gint timeout_callback( gpointer data )
|
||||
gdk_threads_leave();
|
||||
|
||||
if ( timer->IsOneShot() )
|
||||
{
|
||||
// This sets m_tag to -1
|
||||
timer->Stop();
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
@@ -41,7 +41,12 @@ extern "C" gint timeout_callback( gpointer data )
|
||||
gdk_threads_leave();
|
||||
|
||||
if ( timer->IsOneShot() )
|
||||
{
|
||||
// This sets m_tag to -1
|
||||
timer->Stop();
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user