reset one shot timer internal state instead of leaving it thinking that it's still running (mdified patch 1730597)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -31,10 +31,17 @@ public:
|
||||
virtual bool Start(int milliseconds = -1, bool oneShot = false);
|
||||
virtual void Stop();
|
||||
|
||||
// for wxTimerScheduler only: resets the internal flag indicating that the
|
||||
// timer is running
|
||||
void MarkStopped()
|
||||
{
|
||||
wxASSERT_MSG( m_isRunning, _T("stopping non-running timer?") );
|
||||
|
||||
m_isRunning = false;
|
||||
}
|
||||
|
||||
private:
|
||||
bool m_isRunning;
|
||||
|
||||
friend class wxTimerScheduler;
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user