-// Copyright (C) 2014-2023 CEA, EDF
+// Copyright (C) 2014-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
{
beginInsertRows(theParent, theRow, theRow + theCount - 1);
endInsertRows();
+
+ //bos #40645 [CEA] Automatically expand tree in Object Browser
+ if (myWorkshop->objectBrowser())
+ {
+ XGUI_DataTree* aTreeView = myWorkshop->objectBrowser()->treeView();
+ if(!aTreeView->isExpanded(theParent))
+ {
+ aTreeView->setExpanded(theParent, true);
+ }
+ }
return true;
}