mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#406) Update additional project trees and property editors
This commit is contained in:
@@ -175,6 +175,16 @@ void RiuMainWindow::cleanupGuiBeforeProjectClose()
|
||||
m_pdmUiPropertyView->showProperties(NULL);
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < additionalPropertyEditors.size(); i++)
|
||||
{
|
||||
if (!additionalPropertyEditors[i]) continue;
|
||||
|
||||
caf::PdmUiPropertyView* propertyView = dynamic_cast<caf::PdmUiPropertyView*>(additionalPropertyEditors[i]->widget());
|
||||
if (propertyView)
|
||||
{
|
||||
propertyView->showProperties(NULL);
|
||||
}
|
||||
}
|
||||
m_processMonitor->startMonitorWorkProcess(NULL);
|
||||
}
|
||||
|
||||
@@ -1294,6 +1304,17 @@ void RiuMainWindow::setPdmRoot(caf::PdmObject* pdmRoot)
|
||||
// For debug only : m_projectTreeView->treeView()->expandAll();
|
||||
m_projectTreeView->setDragDropHandle(m_dragDrop);
|
||||
|
||||
for (size_t i = 0; i < additionalProjectTrees.size(); i++)
|
||||
{
|
||||
if (!additionalProjectTrees[i]) continue;
|
||||
|
||||
caf::PdmUiTreeView* treeView = dynamic_cast<caf::PdmUiTreeView*>(additionalProjectTrees[i]->widget());
|
||||
if (treeView)
|
||||
{
|
||||
treeView->setPdmItem(pdmRoot);
|
||||
}
|
||||
}
|
||||
|
||||
caf::SelectionManager::instance()->setPdmRootObject(pdmRoot);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user