Ignore requests to start the timer when it is already active

This commit is contained in:
Olivier Teulière 2012-11-07 00:26:30 +01:00
parent f131fa9050
commit 5676d9c78f

View file

@ -74,8 +74,11 @@ void TimerModel::updateTime()
void TimerModel::startTimer() void TimerModel::startTimer()
{ {
// Timeout every second if (!m_timer->isActive())
m_timer->start(1000); {
// Timeout every second
m_timer->start(1000);
}
} }