From 1400222d170c42fb380ba1e83ef69c9aabeb7b4e Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Sun, 8 Jan 2012 10:11:54 +0100 Subject: [PATCH] Fix bug 913154: focus problem with template history widget in bulk edit. --- src/calibre/gui2/widgets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/widgets.py b/src/calibre/gui2/widgets.py index 09b655f758..f3badd91c9 100644 --- a/src/calibre/gui2/widgets.py +++ b/src/calibre/gui2/widgets.py @@ -660,7 +660,8 @@ class HistoryLineEdit(QComboBox): # {{{ def focusOutEvent(self, e): QComboBox.focusOutEvent(self, e) - self.lost_focus.emit() + if not (self.hasFocus() or self.view().hasFocus()): + self.lost_focus.emit() # }}}