mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-14 08:54:34 +12:00
Fix crash if Cheatsheet filter term not found and Enter key pressed #354
See issue #354.
This commit is contained in:
parent
0d84202da6
commit
713528a239
|
@ -146,10 +146,11 @@ class cheatSheet(QWidget, Ui_cheatSheet):
|
||||||
|
|
||||||
def showInfos(self):
|
def showInfos(self):
|
||||||
self.hideList()
|
self.hideList()
|
||||||
i = self.list.currentItem()
|
if self.list:
|
||||||
ref = i.data(Qt.UserRole)
|
i = self.list.currentItem()
|
||||||
if ref:
|
ref = i.data(Qt.UserRole)
|
||||||
self.view.setText(Ref.infos(ref))
|
if ref:
|
||||||
|
self.view.setText(Ref.infos(ref))
|
||||||
|
|
||||||
def openLink(self, link):
|
def openLink(self, link):
|
||||||
Ref.open(link)
|
Ref.open(link)
|
||||||
|
|
Loading…
Reference in a new issue