summaryrefslogtreecommitdiff
path: root/src/qcam/qt_event_dispatcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcam/qt_event_dispatcher.cpp')
-rw-r--r--src/qcam/qt_event_dispatcher.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qcam/qt_event_dispatcher.cpp b/src/qcam/qt_event_dispatcher.cpp
index 98d2472c..e39c6edb 100644
--- a/src/qcam/qt_event_dispatcher.cpp
+++ b/src/qcam/qt_event_dispatcher.cpp
@@ -130,10 +130,8 @@ void QtEventDispatcher::unregisterTimer(Timer *timer)
void QtEventDispatcher::timerEvent(QTimerEvent *event)
{
- auto it = timers_.find(event->timerId());
- timerIds_.erase(it->second);
- killTimer(it->first);
- timers_.erase(it);
+ Timer *timer = timers_[event->timerId()];
+ timer->stop();
}
void QtEventDispatcher::processEvents()