mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
7fda097623
@ -667,10 +667,11 @@ class SearchToolBar(QHBoxLayout):
|
||||
self.setup_tool_button(self, qact, act.popup_type)
|
||||
|
||||
def widgetForAction(self, action):
|
||||
try:
|
||||
dex = self.search_tool_bar_actions.index(action)
|
||||
if dex < 0:
|
||||
return None
|
||||
return self.search_tool_bar_widgets[dex]
|
||||
except Exception:
|
||||
return None
|
||||
|
||||
def setup_tool_button(self, bar, ac, menu_mode=None):
|
||||
widget = self.widgetForAction(ac)
|
||||
|
Loading…
x
Reference in New Issue
Block a user