From 2196b708fa4e54fc96d99fa5365da16333dac6a8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 14 Sep 2020 20:22:32 +0530 Subject: [PATCH] Show a dot next to highlights with notes in the viewer highlights panel --- src/calibre/gui2/viewer/highlights.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/viewer/highlights.py b/src/calibre/gui2/viewer/highlights.py index 296819feae..30c09f9710 100644 --- a/src/calibre/gui2/viewer/highlights.py +++ b/src/calibre/gui2/viewer/highlights.py @@ -203,6 +203,8 @@ class Highlights(QTreeWidget): for itemnum, h in enumerate(items): txt = h.get('highlighted_text') txt = txt.replace('\n', ' ') + if h.get('notes'): + txt = '•' + txt if len(txt) > 100: txt = txt[:100] + '…' item = QTreeWidgetItem(section, [txt], 2)