summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-03-19 18:12:24 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-03-19 18:12:24 +0100
commite615524d8e5ff7a356f2d84d8040d7730dcad7b4 (patch)
tree2ee641fe73762b9ba8d1212fdfe9a5b234fd4619 /tracker-pt
parentf46bfc36647a338aaa2900840253d825254f5704 (diff)
tracker/pt: move to inner scope
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/ftnoir_tracker_pt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp
index 1ca51368..ca228a24 100644
--- a/tracker-pt/ftnoir_tracker_pt.cpp
+++ b/tracker-pt/ftnoir_tracker_pt.cpp
@@ -57,7 +57,6 @@ void Tracker_PT::run()
{
pt_camera_info info;
bool new_frame = false;
- const bool preview_visible = check_is_visible();
{
QMutexLocker l(&camera_mtx);
@@ -68,6 +67,8 @@ void Tracker_PT::run()
if (new_frame)
{
+ const bool preview_visible = check_is_visible();
+
if (preview_visible)
*preview_frame = *frame;