From 0ac9313bdfa81d057da5ef9066607ecafcd1ae92 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 7 Aug 2020 07:57:18 +0530 Subject: [PATCH] ... --- src/calibre/gui2/viewer/highlights.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/viewer/highlights.py b/src/calibre/gui2/viewer/highlights.py index e54f0cb6c6..507adc9aa5 100644 --- a/src/calibre/gui2/viewer/highlights.py +++ b/src/calibre/gui2/viewer/highlights.py @@ -358,5 +358,5 @@ class HighlightsPanel(QWidget): def export(self): hl = list(self.highlights.all_highlights) if not hl: - return error_dialog(_('No highlights'), _('This book has no highlights to export'), show=True) + return error_dialog(self, _('No highlights'), _('This book has no highlights to export'), show=True) Export(hl, self).exec_()