]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Update viewer on history change
authorvsv <vsv@opencascade.com>
Mon, 14 Oct 2019 16:34:27 +0000 (19:34 +0300)
committervsv <vsv@opencascade.com>
Mon, 14 Oct 2019 16:34:27 +0000 (19:34 +0300)
src/XGUI/XGUI_ObjectsBrowser.cpp

index df92b7e2add92a68463f4aefda658b1302265697..75543ff5c9d92d572f1c6357e80a01c3429c264e 100644 (file)
@@ -31,6 +31,7 @@
 #include <ModuleBase_ITreeNode.h>
 
 #include <XGUI_Workshop.h>
+#include <XGUI_Displayer.h>
 
 #include <QLayout>
 #include <QLineEdit>
@@ -227,6 +228,8 @@ void XGUI_DataTree::processHistoryChange(const QModelIndex& theIndex)
     update(aModel->index(i, 1, aParent));
     update(aModel->index(i, 2, aParent));
   }
+  XGUI_ObjectsBrowser* aObjBrowser = qobject_cast<XGUI_ObjectsBrowser*>(parent());
+  aObjBrowser->workshop()->displayer()->updateViewer();
 }
 
 void XGUI_DataTree::processEyeClick(const QModelIndex& theIndex)