summaryrefslogtreecommitdiffstats
path: root/examples/webengine/quicknanobrowser/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/webengine/quicknanobrowser/util.h')
-rw-r--r--examples/webengine/quicknanobrowser/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/webengine/quicknanobrowser/util.h b/examples/webengine/quicknanobrowser/util.h
index bad41d6a7..85db8c25b 100644
--- a/examples/webengine/quicknanobrowser/util.h
+++ b/examples/webengine/quicknanobrowser/util.h
@@ -50,7 +50,7 @@ QUrl urlFromUserInput(const QString& userInput)
{
QFileInfo fileInfo(userInput);
if (fileInfo.exists())
- return QUrl(fileInfo.absoluteFilePath());
+ return QUrl::fromLocalFile(fileInfo.absoluteFilePath());
return QUrl::fromUserInput(userInput);
}