From 76ddbec2cbe7b26ac41b13215aa27bfc40e68e49 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Sun, 18 Jul 2021 11:05:08 +0100 Subject: [PATCH] Change the documentation for the new tag_browser_context_action() method so that it is clearer that the method is not required to yield actions. --- src/calibre/gui2/actions/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/actions/__init__.py b/src/calibre/gui2/actions/__init__.py index 809e80a834..e869fdf680 100644 --- a/src/calibre/gui2/actions/__init__.py +++ b/src/calibre/gui2/actions/__init__.py @@ -354,8 +354,8 @@ class InterfaceAction(QObject): Called when displaying the context menu in the Tag browser. ``index`` is the QModelIndex that points to the Tag browser item that was right clicked. Test it for validity with index.valid() and get the underlying TagTreeItem - object with index.data(Qt.ItemDataRole.UserRole). This method must yield one - or more action objects that will be added to the context menu. + object with index.data(Qt.ItemDataRole.UserRole). Any action objects + yielded by this method will be added to the context menu. ''' if False: yield QAction()