mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2511 2D Intersection view: Avoid selecting intersection in tree when selecting a cell
This commit is contained in:
parent
0cb14397ac
commit
f0d32e6e45
@ -576,7 +576,10 @@ void RiuViewerCommands::handlePickAction(int winPosX, int winPosY, Qt::KeyboardM
|
|||||||
intersectionHit = true;
|
intersectionHit = true;
|
||||||
intersectionTriangleHit = crossSectionSourceInfo->triangle(firstPartTriangleIndex);
|
intersectionTriangleHit = crossSectionSourceInfo->triangle(firstPartTriangleIndex);
|
||||||
|
|
||||||
RiuMainWindow::instance()->selectAsCurrentItem(crossSectionSourceInfo->crossSection());
|
if (!dynamic_cast<Rim2dIntersectionView*>(m_viewer->ownerViewWindow()))
|
||||||
|
{
|
||||||
|
RiuMainWindow::instance()->selectAsCurrentItem(crossSectionSourceInfo->crossSection());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (intersectionBoxSourceInfo)
|
else if (intersectionBoxSourceInfo)
|
||||||
|
Loading…
Reference in New Issue
Block a user