From b947e4a4ae0e06633b114dd59d447973fc5aaa56 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 20 Oct 2017 18:06:24 +0200 Subject: options/scoped: use raii --- gui/main-window.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gui/main-window.cpp') 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(); -- cgit v1.2.3