From 0d0d317a664813b0a90a5dfa2bff420bbee98236 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 21 Apr 2016 13:53:05 +0300 Subject: [PATCH] Issue #1423: Fix of non updated data tree after redo command --- src/XGUI/XGUI_DataModel.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.39.2