1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

[Fix:] Loading local files from Menu File -> Open File action. See #65

This commit is contained in:
David Rosca 2011-12-17 13:46:05 +01:00
parent df01a3efef
commit e5967a6c14

View File

@ -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));
}
}