From 263e3fee5fc018a1f3ec2916f1476a718a958457 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 19 Jun 2017 11:46:59 +0530 Subject: [PATCH] Allow adding the sort button to the main toolbars as well Also change its icon to match that of the cover grid sort button --- src/calibre/gui2/actions/sort.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/actions/sort.py b/src/calibre/gui2/actions/sort.py index 28279aba58..067c692380 100644 --- a/src/calibre/gui2/actions/sort.py +++ b/src/calibre/gui2/actions/sort.py @@ -28,13 +28,13 @@ class SortAction(QAction): class SortByAction(InterfaceAction): name = 'Sort By' - action_spec = (_('Sort by'), 'arrow-up.png', _('Sort the list of books'), None) + action_spec = (_('Sort by'), 'sort.png', _('Sort the list of books'), None) action_type = 'current' popup_type = QToolButton.InstantPopup action_add_menu = True dont_add_to = frozenset([ - 'toolbar', 'toolbar-device', 'context-menu-device', 'toolbar-child', - 'menubar', 'menubar-device', 'context-menu-cover-browser']) + 'toolbar-device', 'context-menu-device', 'menubar', 'menubar-device', + 'context-menu-cover-browser']) def genesis(self): self.sorted_icon = QIcon(I('ok.png'))