diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-20 18:06:24 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-20 18:06:33 +0200 |
commit | b947e4a4ae0e06633b114dd59d447973fc5aaa56 (patch) | |
tree | 7933c169ed263f30ef0389f2059da14e3c5ad933 /gui | |
parent | 39e209983bd1f04fb0beefef754d7430c8b7fb9f (diff) |
options/scoped: use raii
Diffstat (limited to 'gui')
-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(); |