From 1156e8209a62839dc59bfdd98f355477f5cb170d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 30 Aug 2019 20:57:05 +0530 Subject: [PATCH] Book details: Fix a regression in the previous release that broke the right click search the internet function Fixes #1842090 ["Search the internet for..." right-click options fail](https://bugs.launchpad.net/calibre/+bug/1842090) --- src/calibre/gui2/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/gui2/__init__.py b/src/calibre/gui2/__init__.py index a56acfc9aa..7fe34c7ef8 100644 --- a/src/calibre/gui2/__init__.py +++ b/src/calibre/gui2/__init__.py @@ -1145,6 +1145,8 @@ def open_url(qurl): def safe_open_url(qurl): + if isinstance(qurl, string_or_bytes): + qurl = QUrl(qurl) if qurl.scheme() in ('', 'file'): path = qurl.toLocalFile() ext = os.path.splitext(path)[-1].lower()[1:]