From 4804a5e2ac2aa8988309fa2a5fe9ffbc00d1b299 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Thu, 21 Apr 2022 22:06:15 +0200 Subject: [PATCH] Don't disable display if associated widget tab changes --- src/rviz/display.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rviz/display.cpp b/src/rviz/display.cpp index e483783691..cd2a1ebe2d 100644 --- a/src/rviz/display.cpp +++ b/src/rviz/display.cpp @@ -386,6 +386,9 @@ void Display::setAssociatedWidget(QWidget* widget) void Display::associatedPanelVisibilityChange(bool visible) { + if (associated_widget_panel_) // consider the actual visibility of the panel + visible = associated_widget_panel_->isVisible(); + associated_widget_visible_ = visible; // If something external makes the panel visible/invisible, make sure to enable/disable the display setEnabled(visible);