Make sure we switch to the correct treeview when selecting an item.

This commit is contained in:
jonjenssen authored and JJ committed 2025-11-10 07:44:55 +01:00
1 parent e785be6f97
commit 5450ab292d
3 files changed
+4 -4

No files matched your search

@@ -271,10 +271,9 @@ void RiuMainWindowBase::selectAsCurrentItem( const caf::PdmObject* object, bool
if ( tv )
{
tv->selectAsCurrentItem( object );
ads::CDockWidget* dw = dynamic_cast<ads::CDockWidget*>( tv->parentWidget() );
if ( dw )
if ( auto dw = m_dockManager->findDockWidget( tv->objectName() ) )
{
dw->show();
dw->setAsCurrentTab();
}
}