From c1eceec7e782540dadac5ad5c62470cc506d382f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 31 Aug 2009 08:16:01 -0600 Subject: [PATCH] Fix #3367 ('QMouseEvent' object has no attribute 'key') --- src/calibre/gui2/search_box.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/search_box.py b/src/calibre/gui2/search_box.py index 1263ff003e..6ecd3ad239 100644 --- a/src/calibre/gui2/search_box.py +++ b/src/calibre/gui2/search_box.py @@ -41,7 +41,7 @@ class SearchBox2(QComboBox): self.connect(self.line_edit, SIGNAL('key_pressed(PyQt_PyObject)'), self.key_pressed, Qt.DirectConnection) self.connect(self.line_edit, SIGNAL('mouse_released(PyQt_PyObject)'), - self.key_pressed, Qt.DirectConnection) + self.mouse_released, Qt.DirectConnection) self.setEditable(True) self.help_state = True self.as_you_type = True