From 4958e3623db0b85201a432579bbbbe4611bcbeed Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 24 Oct 2021 15:50:13 +0530 Subject: [PATCH] Add a clear button to the target field --- src/calibre/gui2/tweak_book/widgets.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/tweak_book/widgets.py b/src/calibre/gui2/tweak_book/widgets.py index 7d13120f18..fc8d14edab 100644 --- a/src/calibre/gui2/tweak_book/widgets.py +++ b/src/calibre/gui2/tweak_book/widgets.py @@ -859,6 +859,7 @@ class InsertSemantics(Dialog): self.semantic_type.addItem(val, key) tl.addRow(_('Type of &semantics:'), self.semantic_type) self.target = t = QLineEdit(self) + t.setClearButtonEnabled(True) t.setPlaceholderText(_('The destination (href) for the link')) tl.addRow(_('&Target:'), t) l.addLayout(tl)