fix BimView Qt6 Support (renew)

This commit is contained in:
hoshengwei
2024-05-28 19:41:54 +08:00
committed by Yorik van Havre
parent 8926f47c9c
commit 3d1ccd22ad

View File

@@ -190,7 +190,7 @@ class BIM_Views:
vm = findWidget()
if vm and FreeCAD.ActiveDocument:
if vm.isVisible() and (vm.tree.state().name != "EditingState"):
if vm.isVisible() and (vm.tree.state() != vm.tree.State.EditingState):
vm.tree.clear()
import Draft