summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
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 fb036721..1fdfcb53 100644
--- a/gui/main-window.cpp
+++ b/gui/main-window.cpp
@@ -86,7 +86,7 @@ MainWindow::MainWindow() :
// timers
connect(&config_list_timer, &QTimer::timeout, this, [this]() { refresh_config_list(); });
- connect(&pose_update_timer, SIGNAL(timeout()), this, SLOT(showHeadPose()));
+ connect(&pose_update_timer, SIGNAL(timeout()), this, SLOT(showHeadPose()), Qt::DirectConnection);
connect(&det_timer, SIGNAL(timeout()), this, SLOT(maybe_start_profile_from_executable()));
// ctrl+q exits
@@ -515,8 +515,8 @@ 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->update();
+ if (mapping_widget && mapping_widget->isVisible())
+ mapping_widget->repaint();
QLCDNumber* raw_[] = {
ui.raw_x, ui.raw_y, ui.raw_z,