Use the new item checker functions instead of equal operator

This commit is contained in:
Veronica Berglyd Olsen
2022-09-11 17:22:46 +02:00
parent 5cba10151a
commit 73b8e3e0fb
8 changed files with 23 additions and 24 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ class GuiDocMerge(QDialog):
for sHandle in self.mainGui.projView.getTreeFromHandle(tHandle):
newItem = QListWidgetItem()
nwItem = self.theProject.tree[sHandle]
if nwItem.itemType is not nwItemType.FILE:
if not nwItem.isFileType():
continue
newItem.setText(nwItem.itemName)
newItem.setData(Qt.UserRole, sHandle)