From cf3ca9395eed89e74698f911223d92e807b70ce7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 6 Jun 2022 08:41:53 +0530 Subject: [PATCH] Manage tags dialog: If tags are present in the add tags input when OK is clicked, add them automatically, without needing to click the plus button first --- src/calibre/gui2/dialogs/tag_editor.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/dialogs/tag_editor.py b/src/calibre/gui2/dialogs/tag_editor.py index 6c1ec7cbf8..26fd5c9fd4 100644 --- a/src/calibre/gui2/dialogs/tag_editor.py +++ b/src/calibre/gui2/dialogs/tag_editor.py @@ -216,6 +216,8 @@ class TagEditor(QDialog, Ui_TagEditor): collection.model().setFilterFixedString(filter_value or '') def accept(self): + if self.add_tag_input.text().strip(): + self.add_tag() self.tags = self._get_applied_tags_box_contents() self.save_state() return QDialog.accept(self)