summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-06-12 19:29:33 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-06-14 18:14:46 +0200
commit04f78571de7e1138a9a3423bbb2d8d4ade1cd712 (patch)
treef696c9c86558ea3539a001441b2e53ebfe642b62 /gui
parent611e74d2db22bf87291442e556808cbaa441c7be (diff)
gui: save before instantiating the tracker
Do IO before trackers need to run at 250 Hz.
Diffstat (limited to 'gui')
-rw-r--r--gui/ui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/ui.cpp b/gui/ui.cpp
index 10be1e30..fd86aca8 100644
--- a/gui/ui.cpp
+++ b/gui/ui.cpp
@@ -310,6 +310,8 @@ void MainWindow::startTracker()
return;
}
+ save();
+
work = std::make_shared<Work>(s, pose, libs, winId());
reload_options();
@@ -330,8 +332,6 @@ void MainWindow::startTracker()
const bool is_inertial = ui.video_frame->layout() == nullptr;
updateButtonState(true, is_inertial);
- save();
-
ui.btnStopTracker->setFocus();
}