mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-16 10:52:29 +12:00
Fixed issue #1042
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
parent
2877670a53
commit
6916f27d60
|
@ -55,8 +55,11 @@ class completer(QWidget, Ui_completer):
|
|||
self.text.setFocus(Qt.PopupFocusReason)
|
||||
|
||||
def submit(self):
|
||||
i = self.list.currentItem()
|
||||
self.activated.emit(i.data(Qt.UserRole))
|
||||
item = self.list.currentItem()
|
||||
|
||||
if item:
|
||||
self.activated.emit(item.data(Qt.UserRole))
|
||||
|
||||
self.hide()
|
||||
|
||||
def keyPressEvent(self, event):
|
||||
|
|
Loading…
Reference in a new issue