mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 18:32:10 -05:00
Caf:PdmUiTree: Rewrote rebuildUiSubTree to become updateUiSubTree
Now the UI state is preserved when refreshing the tree, making it suitable to use this method more extensively. This paves the way to make changes to the Pdm data structure without considering the ui at all, until a call to updateUiSubTree gets the ui gracefully into sync. p4#: 21599
This commit is contained in:
1 parent
06d32ae97e
commit
cad25bcd59
9 files changed
+125
-77
No files matched your search
@@ -1098,7 +1098,7 @@ void RiaApplication::applyPreferences()
|
||||
{
|
||||
this->project()->setScriptDirectories(m_preferences->scriptDirectories());
|
||||
RimUiTreeModelPdm* treeModel = RiuMainWindow::instance()->uiPdmModel();
|
||||
if (treeModel) treeModel->rebuildUiSubTree(this->project()->scriptCollection());
|
||||
if (treeModel) treeModel->updateUiSubTree(this->project()->scriptCollection());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user