Fix bug 913154: focus problem with template history widget in bulk edit.

This commit is contained in:
Charles Haley 2012-01-08 10:11:54 +01:00
parent 795dd84415
commit 1400222d17

View File

@ -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()
# }}}