From: vsv Date: Thu, 21 Apr 2016 10:53:05 +0000 (+0300) Subject: Issue #1423: Fix of non updated data tree after redo command X-Git-Tag: V_2.3.0~158 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0d0d317a664813b0a90a5dfa2bff420bbee98236;p=modules%2Fshaper.git Issue #1423: Fix of non updated data tree after redo command --- diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index 6bcee6721..47c0af292 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -232,8 +232,12 @@ void XGUI_DataModel::processEvent(const std::shared_ptr& theMess ObjectPtr aObject = (*aIt); if (aObject->data()->isValid()) { QModelIndex aIndex = objectIndex(aObject); - if (aIndex.isValid()) + if (aIndex.isValid()) { emit dataChanged(aIndex, aIndex); + } else { + rebuildDataTree(); + break; + } } else { rebuildDataTree(); break;