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)
|
self.setup_tool_button(self, qact, act.popup_type)
|
||||||
|
|
||||||
def widgetForAction(self, action):
|
def widgetForAction(self, action):
|
||||||
dex = self.search_tool_bar_actions.index(action)
|
try:
|
||||||
if dex < 0:
|
dex = self.search_tool_bar_actions.index(action)
|
||||||
|
return self.search_tool_bar_widgets[dex]
|
||||||
|
except Exception:
|
||||||
return None
|
return None
|
||||||
return self.search_tool_bar_widgets[dex]
|
|
||||||
|
|
||||||
def setup_tool_button(self, bar, ac, menu_mode=None):
|
def setup_tool_button(self, bar, ac, menu_mode=None):
|
||||||
widget = self.widgetForAction(ac)
|
widget = self.widgetForAction(ac)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user