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