mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 10:03:53 +02:00
PyQt 5.5 compatibility
This commit is contained in:
parent
66aae13cd7
commit
ee0931ee67
1 changed files with 2 additions and 0 deletions
|
|
@ -822,6 +822,8 @@ def search_online(self):
|
|||
|
||||
def do_search_online(self, text):
|
||||
url = self.document.search_online_url.replace('{text}', QUrl().toPercentEncoding(text))
|
||||
if not isinstance(url, bytes):
|
||||
url = url.encode('utf-8')
|
||||
open_url(QUrl.fromEncoded(url))
|
||||
|
||||
def set_manager(self, manager):
|
||||
|
|
|
|||
Loading…
Reference in a new issue