]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1423: Fix of non updated data tree after redo command
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 21 Apr 2016 10:53:05 +0000 (13:53 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 21 Apr 2016 10:53:05 +0000 (13:53 +0300)
src/XGUI/XGUI_DataModel.cpp

index 6bcee6721de6fa76695059449142564676891b4f..47c0af2923de050d7723cd8edb9dbd2eb6f4325b 100644 (file)
@@ -232,8 +232,12 @@ void XGUI_DataModel::processEvent(const std::shared_ptr<Events_Message>& 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;