summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-04-06 02:41:10 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-04-06 04:21:43 +0200
commite1f1ab62f1aaa5ee9924f1d124dc4a1b66ea9893 (patch)
tree281c5a48646fb01d04867c4cc33811f2b8d1d461 /gui
parentff7e852fd85c6b8154a88215e457b9dca6899068 (diff)
gui: show zeros on tracking stop
Regressed as of late.
Diffstat (limited to 'gui')
-rw-r--r--gui/main-window.cpp5
1 files changed, 1 insertions, 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);
}