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:
@@ -149,6 +149,14 @@ RiuMainWindow* RiuMainWindow::instance()
|
||||
return sm_mainWindowInstance;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RiuMainWindow::mainWindowName()
|
||||
{
|
||||
return "RiuMainWindow";
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -1297,7 +1305,7 @@ void RiuMainWindow::selectedObjectsChanged()
|
||||
|
||||
m_pdmUiPropertyView->showProperties(firstSelectedObject);
|
||||
|
||||
if (uiItems.size() == 1)
|
||||
if (uiItems.size() == 1 && m_allowActiveViewChangeFromSelection)
|
||||
{
|
||||
// Find the reservoir view or the Plot that the selected item is within
|
||||
|
||||
@@ -1619,14 +1627,6 @@ void RiuMainWindow::showProcessMonitorDockPanel()
|
||||
showDockPanel(DOCK_PANEL_NAME_PROCESS_MONITOR);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RiuMainWindow::selectAsCurrentItem(const caf::PdmObject* object)
|
||||
{
|
||||
m_projectTreeView->selectAsCurrentItem(object);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user