diff options
Diffstat (limited to 'gui/main-window.cpp')
-rw-r--r-- | gui/main-window.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp index d049facc..d03dbb82 100644 --- a/gui/main-window.cpp +++ b/gui/main-window.cpp @@ -490,7 +490,7 @@ void MainWindow::stop_tracker_() if (!work) return; - opts::set_teardown_flag(true); // XXX hack -sh 20160926 + with_tracker_teardown sentinel; pose_update_timer.stop(); ui.pose_display->rotate_sync(0,0,0, 0,0,0); @@ -511,8 +511,6 @@ void MainWindow::stop_tracker_() display_pose(p, p); } - opts::set_teardown_flag(false); // XXX hack -sh 20160926 - update_button_state(false, false); set_title(); ui.btnStartTracker->setFocus(); |