diff options
-rw-r--r-- | examples/webengine/quicknanobrowser/util.h | 2 | ||||
-rw-r--r-- | tests/quicktestbrowser/util.h | 2 |
2 files changed, 2 insertions, 2 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); } diff --git a/tests/quicktestbrowser/util.h b/tests/quicktestbrowser/util.h index bad41d6a7..85db8c25b 100644 --- a/tests/quicktestbrowser/util.h +++ b/tests/quicktestbrowser/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); } |