From 245f909db8ab5549ae2e08e39178a4c7463419ef Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 22 Oct 2013 01:52:22 +0200 Subject: fix race Signed-off-by: Stanislaw Halik --- FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'FTNoIR_Tracker_PT') diff --git a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp index 745d98e9..43ecc775 100644 --- a/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp +++ b/FTNoIR_Tracker_PT/ftnoir_tracker_pt.cpp @@ -30,11 +30,6 @@ Tracker::Tracker() tracking_valid(false) { qDebug()<<"Tracker::Tracker"; - TrackerSettings settings; - settings.load_ini(); - apply(settings); - camera.start(); - start(); } Tracker::~Tracker() @@ -207,6 +202,11 @@ void Tracker::Initialize(QFrame *video_frame) video_frame->setAttribute(Qt::WA_NativeWindow); video_frame->show(); update_show_video_widget(); + TrackerSettings settings; + settings.load_ini(); + apply(settings); + camera.start(); + start(); } void Tracker::refreshVideo() -- cgit v1.2.3