diff --git a/openbr/plugins/io/download.cpp b/openbr/plugins/io/download.cpp index eb6f476..a090acb 100644 --- a/openbr/plugins/io/download.cpp +++ b/openbr/plugins/io/download.cpp @@ -57,7 +57,9 @@ private: if (!url.contains("://")) url = "file://" + url; dst.file.set("URL", url); - if (url.startsWith("file:///")) + + QRegularExpression regExp("file:///[A-Z]:/"); + if (url.contains(regExp)) url = url.mid(8); else if (url.startsWith("file://")) url = url.mid(7);