summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-10-31 08:58:20 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-10-31 09:02:04 (GMT)
commit966571644a51763b4a8da9c2c648f25301a4fb80 (patch)
tree5abc663374c5857973376ba476b67ac5bfd4af26 /SwifTools
parent544cbf6443a8f6c075b1dd5f064c818e7505dcc1 (diff)
downloadswift-966571644a51763b4a8da9c2c648f25301a4fb80.zip
swift-966571644a51763b4a8da9c2c648f25301a4fb80.tar.bz2
Make Timer one-shot.
Diffstat (limited to 'SwifTools')
-rw-r--r--SwifTools/Idle/ActualIdleDetector.cpp2
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();
}
}