From b9cdc80806b3201ac73fd46e998e522414b6ed0f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 13 Feb 2024 10:18:29 +0530 Subject: [PATCH] Add a link to the upstream bug report in the workaround code --- src/calibre/gui2/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/gui2/__init__.py b/src/calibre/gui2/__init__.py index f6f3cb98a0..34ce7206cf 100644 --- a/src/calibre/gui2/__init__.py +++ b/src/calibre/gui2/__init__.py @@ -1693,6 +1693,7 @@ def local_path_for_resource(qurl: QUrl, base_qurl: 'QUrl | None' = None) -> str: def fix_qt_bodging_windows_paths(path: str) -> str: # When loading Qt gives us the # URL: //c/path/to/img.png Le bubbling sigh + # https://bugreports.qt.io/browse/QTBUG-122201 if iswindows and re.match(r'//[a-zA-Z]/', path) is not None and not os.path.exists(path): path = os.path.normpath(path[2] + ':' + path[3:]) return path