Merge 1.5.3 fixes (#940)

* Resolve #918
* Resolve #935
* Bump version and update changelog and release notes
This commit is contained in:
Veronica Berglyd Olsen
2021-12-31 14:58:17 +01:00
committed by GitHub
parent 5e2ab4f612
commit 5afd402c8b
5 changed files with 48 additions and 9 deletions
+5 -2
View File
@@ -628,11 +628,14 @@ class GuiProjectTree(QTreeWidget):
trItem.setToolTip(self.C_STATUS, nwItem.itemStatus)
if self.mainConf.emphLabels and nwItem.itemLayout == nwItemLayout.DOCUMENT:
trFont = trItem.font(self.C_NAME)
if hLevel in ("H1", "H2"):
trFont = trItem.font(self.C_NAME)
trFont.setBold(True)
trFont.setUnderline(True)
trItem.setFont(self.C_NAME, trFont)
else:
trFont.setBold(False)
trFont.setUnderline(False)
trItem.setFont(self.C_NAME, trFont)
return