Skip to content

Commit

Permalink
Merge branch 'release/0.1.15'
Browse files Browse the repository at this point in the history
  • Loading branch information
lb803 committed Apr 6, 2023
2 parents b996867 + 7242594 commit 2ad61ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ def __init__(self, *args, **kwargs):
super(Completer, self).__init__(*args, **kwargs)
self.setFilterMode(Qt.MatchContains)
self.setCaseSensitivity(Qt.CaseInsensitive)
self.setCompletionMode(QCompleter.PopupCompletion)
try:
self.setCompletionMode(QCompleter.PopupCompletion)
except AttributeError:
# running calibre v 6.x.x or greater
self.setCompletionMode(QCompleter.CompletionMode.PopupCompletion)


# Add texts instead of replace
Expand Down

0 comments on commit 2ad61ab

Please sign in to comment.