Fixes #2084133 [Holding Ctrl and clicking twice adds 2 spaces to the search in the search bar](https://bugs.launchpad.net/calibre/+bug/2084133)
This commit is contained in:
Kovid Goyal 2024-10-10 17:16:26 +05:30
commit 781c73ff5f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1847,7 +1847,7 @@ class TagsModel(QAbstractItemModel): # {{{
if tag.state != TAG_SEARCH_STATES['clear']:
if tag.state == TAG_SEARCH_STATES['mark_minus'] or \
tag.state == TAG_SEARCH_STATES['mark_minusminus']:
prefix = ' not '
prefix = 'not '
else:
prefix = ''
if node.is_gst: