summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp4
-rw-r--r--ftnoir_tracker_aruco/ftnoir_tracker_aruco.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
index 19413e2f..50496ed7 100644
--- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
+++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
@@ -465,6 +465,8 @@ TrackerControls::TrackerControls()
void TrackerControls::doOK()
{
s.b->save();
+ if (tracker)
+ tracker->reload();
this->close();
}
@@ -480,6 +482,8 @@ void TrackerControls::doCancel()
case QMessageBox::Save:
s.b->save();
this->close();
+ if (tracker)
+ tracker->reload();
break;
case QMessageBox::Discard:
s.b->revert();
diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.h b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.h
index 2ff40c77..91a5ae8e 100644
--- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.h
+++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.h
@@ -55,6 +55,7 @@ public:
void StartTracker(QFrame* frame);
void GetHeadPoseData(double *data);
void run();
+ void reload() { s.b->reload(); }
private:
QMutex mtx;
volatile bool stop;