From: vsv Date: Mon, 14 Oct 2019 16:34:27 +0000 (+0300) Subject: Update viewer on history change X-Git-Tag: V9_4_0b1~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=122e9d9fc61e0366676b37a9d6f7fc30109f5d40;p=modules%2Fshaper.git Update viewer on history change --- diff --git a/src/XGUI/XGUI_ObjectsBrowser.cpp b/src/XGUI/XGUI_ObjectsBrowser.cpp index df92b7e2a..75543ff5c 100644 --- a/src/XGUI/XGUI_ObjectsBrowser.cpp +++ b/src/XGUI/XGUI_ObjectsBrowser.cpp @@ -31,6 +31,7 @@ #include #include +#include #include #include @@ -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(parent()); + aObjBrowser->workshop()->displayer()->updateViewer(); } void XGUI_DataTree::processEyeClick(const QModelIndex& theIndex)