mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-04 21:06:32 +01:00
Fix #1886882 ["Sort by" unavailable in main toolbar when device is connected](https://bugs.launchpad.net/calibre/+bug/1886882)
This commit is contained in:
parent
fc2ba657f8
commit
1578573a7b
1 changed files with 1 additions and 3 deletions
|
|
@ -32,9 +32,7 @@ class SortByAction(InterfaceAction):
|
|||
action_type = 'current'
|
||||
popup_type = QToolButton.InstantPopup
|
||||
action_add_menu = True
|
||||
dont_add_to = frozenset([
|
||||
'toolbar-device', 'context-menu-device', 'menubar', 'menubar-device',
|
||||
'context-menu-cover-browser'])
|
||||
dont_add_to = frozenset(('context-menu-cover-browser', ))
|
||||
|
||||
def genesis(self):
|
||||
self.sorted_icon = QIcon(I('ok.png'))
|
||||
|
|
|
|||
Loading…
Reference in a new issue