mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 17:10:19 -05:00
Make sure we switch to the correct treeview when selecting an item.
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user