mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2487 Avoid switching views when picking a simulation well in an intersection view
This commit is contained in:
parent
25f38cb406
commit
74e4775395
@ -497,6 +497,7 @@ void RiuViewerCommands::handlePickAction(int winPosX, int winPosY, Qt::KeyboardM
|
||||
if (rivObjectSourceInfo)
|
||||
{
|
||||
RimFracture* fracture = dynamic_cast<RimFracture*>(rivObjectSourceInfo->object());
|
||||
|
||||
{
|
||||
bool blockSelectionOfFracture = false;
|
||||
if (fracture)
|
||||
@ -586,7 +587,9 @@ void RiuViewerCommands::handlePickAction(int winPosX, int winPosY, Qt::KeyboardM
|
||||
}
|
||||
else if (eclipseWellSourceInfo)
|
||||
{
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(eclipseWellSourceInfo->well());
|
||||
bool allowActiveViewChange = dynamic_cast<Rim2dIntersectionView*>(m_viewer->ownerViewWindow()) == nullptr;
|
||||
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(eclipseWellSourceInfo->well(), allowActiveViewChange);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user