chore: remove the wsl workaround since Qt 5.15.2 fixed the issue

This commit is contained in:
Gary Wang
2020-12-17 13:04:33 +08:00
parent 50457a7fc4
commit 01443d5ad4
3 changed files with 1 additions and 25 deletions

View File

@ -31,13 +31,6 @@ void GraphicsView::showFileFromUrl(const QUrl &url, bool doRequestGallery)
QString filePath(url.toLocalFile());
#ifdef Q_OS_WIN
// TODO: remove this workaround when M$ change the "wsl$" hostname.
if (Q_UNLIKELY(url.scheme() == QStringLiteral("qtbug-86277"))) {
filePath = url.path();
}
#endif // Q_OS_WIN
if (filePath.endsWith(".svg")) {
showSvg(filePath);
} else if (filePath.endsWith(".gif")) {