mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2487 Avoid switching view when clicking objs in the intersectino view. Some minor refactoring of the MainWindows
This commit is contained in:
@@ -571,11 +571,9 @@ void RiuViewerCommands::handlePickAction(int winPosX, int winPosY, Qt::KeyboardM
|
||||
intersectionHit = true;
|
||||
intersectionTriangleHit = crossSectionSourceInfo->triangle(firstPartTriangleIndex);
|
||||
|
||||
if (!dynamic_cast<Rim2dIntersectionView*>(m_viewer->ownerViewWindow()))
|
||||
{
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(crossSectionSourceInfo->crossSection());
|
||||
}
|
||||
|
||||
bool allowActiveViewChange = dynamic_cast<Rim2dIntersectionView*>(m_viewer->ownerViewWindow()) == nullptr;
|
||||
|
||||
RiuMainWindow::instance()->selectAsCurrentItem(crossSectionSourceInfo->crossSection(), allowActiveViewChange);
|
||||
}
|
||||
else if (intersectionBoxSourceInfo)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user