1
0

feat: load gallery for wsl$ location

This commit is contained in:
Gary Wang
2020-08-31 20:02:49 +08:00
parent 7245a4e212
commit e2fb1813f1
2 changed files with 14 additions and 7 deletions

View File

@@ -35,10 +35,6 @@ void GraphicsView::showFileFromUrl(const QUrl &url, bool doRequestGallery)
// TODO: remove this workaround when M$ change the "wsl$" hostname.
if (Q_UNLIKELY(url.scheme() == QStringLiteral("qtbug-86277"))) {
filePath = url.path();
// Qt's QUrl won't work with such hostname anyway so the urls will
// still be the wrong one when requesting gallery. So we just don't
// request gallery here...
doRequestGallery = false;
}
#endif // Q_OS_WIN