#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.
This commit is contained in:
Magne Sjaastad committed 2025-02-25 14:59:16 +01:00
1 parent efa3ef8f52
commit e2c0279f08
1 file changed
+5 -2
@@ -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 );