diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-10-31 08:58:20 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-10-31 09:02:04 (GMT) |
commit | 966571644a51763b4a8da9c2c648f25301a4fb80 (patch) | |
tree | 5abc663374c5857973376ba476b67ac5bfd4af26 /SwifTools | |
parent | 544cbf6443a8f6c075b1dd5f064c818e7505dcc1 (diff) | |
download | swift-contrib-966571644a51763b4a8da9c2c648f25301a4fb80.zip swift-contrib-966571644a51763b4a8da9c2c648f25301a4fb80.tar.bz2 |
Make Timer one-shot.
Diffstat (limited to 'SwifTools')
-rw-r--r-- | SwifTools/Idle/ActualIdleDetector.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/SwifTools/Idle/ActualIdleDetector.cpp b/SwifTools/Idle/ActualIdleDetector.cpp index 111f4e2..59df632 100644 --- a/SwifTools/Idle/ActualIdleDetector.cpp +++ b/SwifTools/Idle/ActualIdleDetector.cpp @@ -26,7 +26,9 @@ ActualIdleDetector::~ActualIdleDetector() { } void ActualIdleDetector::handleTimerTick() { + timer->stop(); setIdle(querier->getIdleTimeSeconds() >= getIdleTimeSeconds()); + timer->start(); } } |