This commit is contained in:
Kovid Goyal 2012-07-14 09:32:34 +05:30
parent 69f74c2018
commit a0256f9705

View File

@ -284,6 +284,8 @@ class LineEdit(QLineEdit, LineEditECM):
if self.no_popup: return
self.update_completions()
select_first = len(self.mcompleter.model().current_prefix) > 0
if not select_first:
self.mcompleter.setCurrentIndex(QModelIndex())
self.complete(select_first=select_first)
def update_completions(self):