From 9e077d8d72f377be85406d90354afcb83ad3faa9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 21 Feb 2019 19:04:20 +0100 Subject: tracker/pt: fix camera not reopening after cancel --- tracker-pt/ftnoir_tracker_pt.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp index b717e4a1..75d7e5a6 100644 --- a/tracker-pt/ftnoir_tracker_pt.cpp +++ b/tracker-pt/ftnoir_tracker_pt.cpp @@ -31,8 +31,10 @@ Tracker_PT::Tracker_PT(pointer const& traits) : cv::setBreakOnError(true); cv::setNumThreads(1); - connect(s.b.get(), SIGNAL(saving()), this, SLOT(maybe_reopen_camera()), Qt::DirectConnection); - connect(&s.fov, SIGNAL(valueChanged(int)), this, SLOT(set_fov(int)), Qt::DirectConnection); + connect(s.b.get(), &bundle_::saving, this, &Tracker_PT::maybe_reopen_camera, Qt::DirectConnection); + connect(s.b.get(), &bundle_::reloading, this, &Tracker_PT::maybe_reopen_camera, Qt::DirectConnection); + + connect(&s.fov, value_::value_changed(), this, &Tracker_PT::set_fov, Qt::DirectConnection); set_fov(s.fov); } -- cgit v1.2.3