]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Improve update of object browser
authorvsv <vsv@opencascade.com>
Wed, 17 Apr 2019 11:40:18 +0000 (14:40 +0300)
committervsv <vsv@opencascade.com>
Wed, 17 Apr 2019 11:40:18 +0000 (14:40 +0300)
src/XGUI/XGUI_DataModel.cpp

index 7da65684d112a024bfa6b9f37ade0a19edb5a5ea..a6aa8cba1b20515955ada266dc8707b785285836 100644 (file)
@@ -68,6 +68,8 @@ void XGUI_DataModel::processEvent(const std::shared_ptr<Events_Message>& theMess
       if ((*aIt)->isInHistory())
         aCreated.append(*aIt);
     }
+    if (aCreated.length() == 0)
+      return;
     QTreeNodesList aNodes = myRoot->objectCreated(aCreated);
     ModuleBase_ITreeNode* aParent;
     int aRow = 0;