From e5967a6c148e62ab86deaf2c2ea167e0ac36d346 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sat, 17 Dec 2011 13:46:05 +0100 Subject: [PATCH] [Fix:] Loading local files from Menu File -> Open File action. See #65 --- src/app/qupzilla.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/qupzilla.cpp b/src/app/qupzilla.cpp index ed93ca99d..7cb639973 100644 --- a/src/app/qupzilla.cpp +++ b/src/app/qupzilla.cpp @@ -1170,7 +1170,7 @@ void QupZilla::openFile() { QString filePath = QFileDialog::getOpenFileName(this, tr("Open file..."), QDir::homePath(), "(*.html *.htm *.jpg *.png)"); if (!filePath.isEmpty()) { - loadAddress(QUrl(filePath)); + loadAddress(QUrl::fromLocalFile(filePath)); } }