mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54: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; }'
|
w.setStyleSheet('QToolButton::menu-button {image: none; }'
|
||||||
'QToolButton::menu-arrow {image: none; }')
|
'QToolButton::menu-arrow {image: none; }')
|
||||||
|
|
||||||
def update_menu(self):
|
def update_menu(self, menu=None):
|
||||||
menu = self.qaction.menu()
|
menu = menu or self.qaction.menu()
|
||||||
for action in menu.actions():
|
for action in menu.actions():
|
||||||
if hasattr(action, 'sort_requested'):
|
if hasattr(action, 'sort_requested'):
|
||||||
action.sort_requested.disconnect()
|
action.sort_requested.disconnect()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user