From e1f1ab62f1aaa5ee9924f1d124dc4a1b66ea9893 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 6 Apr 2017 02:41:10 +0200 Subject: gui: show zeros on tracking stop Regressed as of late. --- gui/main-window.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gui/main-window.cpp b/gui/main-window.cpp index ee963bd7..fb036721 100644 --- a/gui/main-window.cpp +++ b/gui/main-window.cpp @@ -512,9 +512,6 @@ void MainWindow::stopTracker() void MainWindow::display_pose(const double *mapped, const double *raw) { - if (!work) - return; - ui.pose_display->rotate_async(mapped[Yaw], mapped[Pitch], -mapped[Roll], mapped[TX], mapped[TY], mapped[TZ]); @@ -538,7 +535,7 @@ void MainWindow::display_pose(const double *mapped, const double *raw) } QString game_title; - if (work->libs.pProtocol) + if (work && work->libs.pProtocol) game_title = work->libs.pProtocol->game_name(); set_title(game_title); } -- cgit v1.2.3