Skip to content

Commit

Permalink
Merge pull request #179 from irgolic/keyword-minus
Browse files Browse the repository at this point in the history
quickmenu: Better sorting for keywords with -
  • Loading branch information
janezd authored Mar 19, 2021
2 parents ff63c2f + 078c979 commit 8de1f3e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions orangecanvas/document/quickmenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,10 @@ def filterAcceptsRow(self, row, parent=QModelIndex()):

name = description.name.lower()
keywords = [k.lower() for k in description.keywords]
for k in keywords[:]:
if '-' in k:
keywords.append(k.replace('-', ''))
keywords.append(k.replace('-', ' '))

query = self.__query
# match name and keywords
Expand Down

0 comments on commit 8de1f3e

Please sign in to comment.