Skip to content

Commit

Permalink
Don't disable display if associated widget tab changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Apr 21, 2022
1 parent 86f84f8 commit 4804a5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rviz/display.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4804a5e

Please sign in to comment.