Use the new item checker functions instead of equal operator
This commit is contained in:
@@ -183,7 +183,7 @@ class NWProject():
|
||||
tItem = self._projTree[tHandle]
|
||||
if tItem is None:
|
||||
return False
|
||||
if tItem.itemType != nwItemType.FILE:
|
||||
if not tItem.isFileType():
|
||||
return False
|
||||
|
||||
newDoc = NWDoc(self, tHandle)
|
||||
|
||||
Reference in New Issue
Block a user