From 57af37f78b56b87216f62d45537e0ad3e7197cf3 Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 22 May 2018 15:49:42 +0300 Subject: [PATCH] Fix for the issue #2456 : Fatal error when remove part --- src/XGUI/XGUI_DataModel.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index df96b1826..2f92a30f2 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -223,8 +223,10 @@ void XGUI_DataModel::processEvent(const std::shared_ptr& theMess int aRow = aRootDoc->size(aGroup, true); if (aGroup == aRootType) { // Process root folder - removeRow(aRow + aNbFolders); - rebuildBranch(aNbFolders, aRow); + // remove optimization due to the issue #2456 + //removeRow(aRow + aNbFolders); + //rebuildBranch(aNbFolders, aRow); + rebuildDataTree(); } else if (aGroup == ModelAPI_Folder::group()) { rebuildDataTree(); } else { -- 2.39.2