summaryrefslogtreecommitdiffstats
path: root/tests/quicktestbrowser/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/quicktestbrowser/util.h')
-rw-r--r--tests/quicktestbrowser/util.h2
1 files changed, 1 insertions, 1 deletions
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);
}