Update classes and functions to use the item as source of main heading instead of index

This commit is contained in:
Veronica Berglyd Olsen
2022-10-17 20:15:45 +02:00
parent 5a4b7b7264
commit 8fe25d4b43
7 changed files with 15 additions and 19 deletions
+1 -2
View File
@@ -155,9 +155,8 @@ class GuiDocMerge(QDialog):
if nwItem is None or not nwItem.isFileType():
continue
hLevel = self.theProject.index.getHandleHeaderLevel(tHandle)
itemIcon = self.mainTheme.getItemIcon(
nwItem.itemType, nwItem.itemClass, nwItem.itemLayout, hLevel
nwItem.itemType, nwItem.itemClass, nwItem.itemLayout, nwItem.mainHeading
)
newItem = QListWidgetItem()