mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Cleanup previous PR
The sort button used by the grid view still needs update_menu to take a menu parameter
This commit is contained in:
parent
5d1e886cf9
commit
40f1948189
@ -98,8 +98,8 @@ class SortByAction(InterfaceAction):
|
||||
w.setStyleSheet('QToolButton::menu-button {image: none; }'
|
||||
'QToolButton::menu-arrow {image: none; }')
|
||||
|
||||
def update_menu(self):
|
||||
menu = self.qaction.menu()
|
||||
def update_menu(self, menu=None):
|
||||
menu = menu or self.qaction.menu()
|
||||
for action in menu.actions():
|
||||
if hasattr(action, 'sort_requested'):
|
||||
action.sort_requested.disconnect()
|
||||
|
Loading…
x
Reference in New Issue
Block a user