Commit 33642d43 authored by Harald Sitter's avatar Harald Sitter 🦄

switch to QURL::isLocalFile (equal to scheme==file)

parent 6c1a1945
......@@ -367,7 +367,7 @@ bool MainWindow::openUrl(const QUrl &u)
QUrl uri = u.adjusted(QUrl::NormalizePathSegments);
const QString path = uri.path();
const QByteArray path8bit = QFile::encodeName(path);
const bool isLocal = uri.scheme() == QLatin1String("file");
const bool isLocal = uri.isLocalFile();
if (uri.isEmpty())
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment