summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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();
}