From a4f1f64ff8401935813886a21d07bf180c4bd47a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 24 Mar 2012 10:59:45 +0530 Subject: [PATCH] ... --- src/calibre/gui2/complete.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/calibre/gui2/complete.py b/src/calibre/gui2/complete.py index 8110618bac..b5c1fc8b3e 100644 --- a/src/calibre/gui2/complete.py +++ b/src/calibre/gui2/complete.py @@ -183,6 +183,11 @@ class MultiCompleteComboBox(EnComboBox): self.lineEdit().set_add_separator(what) def show_initial_value(self, what): + ''' + Show an initial value. Handle the case of the initial value being blank + correctly (on Qt 4.8.0 having a blank value causes the first value from + the completer to be shown, when the event loop runs). + ''' what = unicode(what) le = self.lineEdit() if not what.strip():