summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-07-29 09:56:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-07-29 09:56:06 +0200
commite62f6fefcde7e2c2cb2de2cc8c5d4089ea6c84b8 (patch)
tree090d01e1b70405fa43eb2d7190b3fa97a3edeebb /gui
parent107df605feaeeffdb99e4eef5182279efedbf511 (diff)
gui: refresh mapping window even if main window is hidden
Diffstat (limited to 'gui')
-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;