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:
Jacob Støren committed 2013-05-13 12:00:52 +02:00
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());
}
}