#include <ModelAPI_Data.h>
#include <ModelAPI_Session.h>
#include <ModelAPI_Document.h>
-#include <ModelAPI_ResultCompSolid.h>
#include <ModelAPI_Tools.h>
#include <ModuleBase_Tools.h>
+#include <ModuleBase_ITreeNode.h>
#include <XGUI_Workshop.h>
if ((theIndex.internalId() == 0) && (aDoc != aMgr->moduleDocument()))
// Clicked folder under root but active document is another
return;
- if ((theIndex.internalId() != 0) && (aDoc.get() != theIndex.internalPointer()))
+ if ((theIndex.internalId() != 0) && (aDoc != aModel->document(theIndex)))
// Cliced not on active document folder
return;
//***************************************************
void XGUI_ObjectsBrowser::rebuildDataTree()
{
+ myDocModel->root()->update();
myDocModel->rebuildDataTree();
update();
}