summaryrefslogtreecommitdiffhomepage
path: root/gui/main-window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/main-window.cpp')
-rw-r--r--gui/main-window.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp
index 49de59d1..f6aa09fc 100644
--- a/gui/main-window.cpp
+++ b/gui/main-window.cpp
@@ -525,9 +525,6 @@ void MainWindow::display_pose(const double *mapped, const double *raw)
ui.pose_display->rotate_async(mapped[Yaw], mapped[Pitch], -mapped[Roll],
mapped[TX], mapped[TY], mapped[TZ]);
- if (mapping_widget)
- mapping_widget->refresh_tab();
-
QLCDNumber* raw_[] = {
ui.raw_x, ui.raw_y, ui.raw_z,
ui.raw_yaw, ui.raw_pitch, ui.raw_roll,
@@ -565,6 +562,9 @@ void MainWindow::showHeadPose()
{
set_is_visible(*this);
+ if (mapping_widget)
+ mapping_widget->refresh_tab();
+
if (!check_is_visible())
return;