mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-05-04 04:52:33 +12:00
Clear Cheatsheet results when filter text empty
This commit is contained in:
parent
713528a239
commit
378f03c0b6
|
@ -71,6 +71,8 @@ class cheatSheet(QWidget, Ui_cheatSheet):
|
|||
def textChanged(self, text):
|
||||
if not text:
|
||||
self.hideList()
|
||||
self.list.clear()
|
||||
self.view.setText("")
|
||||
else:
|
||||
self.list.show()
|
||||
|
||||
|
@ -146,7 +148,7 @@ class cheatSheet(QWidget, Ui_cheatSheet):
|
|||
|
||||
def showInfos(self):
|
||||
self.hideList()
|
||||
if self.list:
|
||||
if self.list and len(self.txtFilter.text()) != 0:
|
||||
i = self.list.currentItem()
|
||||
ref = i.data(Qt.UserRole)
|
||||
if ref:
|
||||
|
|
Loading…
Reference in a new issue