Salome HOME
Merge remote-tracking branch 'remotes/origin/2018_Lot1_Tasks'
[modules/shaper.git] / src / XGUI / XGUI_DataModel.cpp
index 64088473747c5ebac9787fc798f75ffb0e4c0a2b..051402c908ebb3bff6077ce63741c944129af17c 100644 (file)
@@ -223,8 +223,10 @@ void XGUI_DataModel::processEvent(const std::shared_ptr<Events_Message>& 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 {