Make sure project items in inactive classes are removed from the index (#2387)
This commit is contained in:
@@ -439,7 +439,7 @@ class NWItem:
|
||||
self.setClass(itemClass)
|
||||
if self._type == nwItemType.FILE:
|
||||
# Notify the index of the class change
|
||||
self._project.index.setItemClass(self._handle, itemClass)
|
||||
self._project.index.refreshHandle(self._handle)
|
||||
|
||||
if self._layout == nwItemLayout.NO_LAYOUT:
|
||||
# If no layout is set, pick one
|
||||
|
||||
Reference in New Issue
Block a user