From c274ce501492d4b17d646ecd785aac777f81a7cd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 4 Mar 2013 11:34:04 +0530 Subject: [PATCH] ... --- src/calibre/gui2/bars.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/calibre/gui2/bars.py b/src/calibre/gui2/bars.py index 74ffafcb2f..f56d668f4f 100644 --- a/src/calibre/gui2/bars.py +++ b/src/calibre/gui2/bars.py @@ -125,10 +125,9 @@ class ToolBar(QToolBar): # {{{ aa = iac.qaction w = self.widgetForAction(aa) m = aa.menu() - cfunc = getattr(iac, func) if (( (w is not None and w.geometry().contains(pos)) or (m is not None and m.isVisible() and m.geometry().contains(pos)) ) and - cfunc(event, md)): + getattr(iac, func)(event, md)): return True return False