summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/qcam/qt_event_dispatcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qcam/qt_event_dispatcher.cpp b/src/qcam/qt_event_dispatcher.cpp
index 9e989bef..2780c912 100644
--- a/src/qcam/qt_event_dispatcher.cpp
+++ b/src/qcam/qt_event_dispatcher.cpp
@@ -117,7 +117,7 @@ void QtEventDispatcher::registerTimer(Timer *timer)
std::chrono::steady_clock::duration duration = timer->deadline() - now;
std::chrono::milliseconds msec =
std::chrono::duration_cast<std::chrono::milliseconds>(duration);
- int timerId = startTimer(msec);
+ int timerId = startTimer(msec.count());
timers_[timerId] = timer;
timerIds_[timer] = timerId;
}