From 9c49e000d1f901cf46696df2d0582e0df8ca4c03 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 21 Aug 2019 20:48:18 +0530 Subject: [PATCH] ... --- src/calibre/gui2/search_box.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/search_box.py b/src/calibre/gui2/search_box.py index c77132c267..2a6ac1075d 100644 --- a/src/calibre/gui2/search_box.py +++ b/src/calibre/gui2/search_box.py @@ -292,7 +292,7 @@ class SearchBox2(QComboBox): # {{{ finally: if not store_in_history: # QueuedConnection as workaround for https://bugreports.qt-project.org/browse/QTBUG-40807 - self.activated[str].connect(self.history_selected, type=Qt.QueuedConnection) + self.activated[native_string_type].connect(self.history_selected, type=Qt.QueuedConnection) def search_as_you_type(self, enabled): self.as_you_type = enabled @@ -325,7 +325,7 @@ class SavedSearchBox(QComboBox): # {{{ self.line_edit = SearchLineEdit(self) self.setLineEdit(self.line_edit) self.line_edit.key_pressed.connect(self.key_pressed, type=Qt.DirectConnection) - self.activated[str].connect(self.saved_search_selected) + self.activated[native_string_type].connect(self.saved_search_selected) # Turn off auto-completion so that it doesn't interfere with typing # names of new searches.