From e2c0279f08811fe845e19fd24b1c3109cea871fa Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 25 Feb 2025 11:23:07 +0100 Subject: [PATCH] #12189 Do not update global selection from tree views in the plot window The intention is to update the selection manager only from the 3D view. The 3D interaction handlers will be affected if the selection manager is updated from the plot window. --- ApplicationLibCode/UserInterface/RiuPlotMainWindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ApplicationLibCode/UserInterface/RiuPlotMainWindow.cpp b/ApplicationLibCode/UserInterface/RiuPlotMainWindow.cpp index c92417e830..66f167aa8a 100644 --- a/ApplicationLibCode/UserInterface/RiuPlotMainWindow.cpp +++ b/ApplicationLibCode/UserInterface/RiuPlotMainWindow.cpp @@ -498,10 +498,13 @@ void RiuPlotMainWindow::createDockPanels() auto dockWidget = RiuDockWidgetTools::createDockWidget( treeViewTitles[i], treeViewDockNames[i], dockManager() ); caf::PdmUiTreeView* projectTree = projectTreeView( i ); - projectTree->enableSelectionManagerUpdating( true ); - projectTree->enableAppendOfClassNameToUiItemText( RiaPreferencesSystem::current()->appendClassNameToUiText() ); + // NB! Do not call projectTree->enableSelectionManagerUpdating( true ) + // The intention is to update the selection manager only from the 3D view. The 3D interaction handlers will be affected if the + // selection manager is updated from the plot window. + // See RiuMainWindow::createDockPanels() + dockWidget->setWidget( projectTree ); projectTree->treeView()->setHeaderHidden( true );