mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2025-01-18 10:26:15 +01:00
Ignore requests to start the timer when it is already active
This commit is contained in:
parent
f131fa9050
commit
5676d9c78f
1 changed files with 5 additions and 2 deletions
|
@ -74,8 +74,11 @@ void TimerModel::updateTime()
|
|||
|
||||
void TimerModel::startTimer()
|
||||
{
|
||||
// Timeout every second
|
||||
m_timer->start(1000);
|
||||
if (!m_timer->isActive())
|
||||
{
|
||||
// Timeout every second
|
||||
m_timer->start(1000);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue