Commit f50c3473 authored by Sergio Martins's avatar Sergio Martins

singlefileresource: Fix setNeedsNetwork()

mSettings->path() is a QString with a scheme.
Maybe it's time to store it as QUrl in settings, would stop this bugs.
parent e11f4bcf
......@@ -53,7 +53,7 @@ public:
, mSettings(new Settings(componentData().config()))
{
// The resource needs network when the path refers to a non local file.
setNeedsNetwork(!QUrl::fromLocalFile(mSettings->path()).isLocalFile());
setNeedsNetwork(!QUrl(mSettings->path()).isLocalFile());
}
~SingleFileResource()
{
......
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