From f1ce45ccb291bbbd834dc4b1db4ec0dcdbc6d8ec Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 1 Dec 2011 07:36:54 +0100 Subject: Open local files in external applications --- src/webpage.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/webpage.cpp') diff --git a/src/webpage.cpp b/src/webpage.cpp index 647b1ccb..1b7241f2 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -302,7 +302,12 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply) return; } - if (!isLocal) + if (isLocal) + { + // Load outside local files + KRun::run(*appService, replyUrl, 0, false, _suggestedFileName); + } + else { KParts::BrowserOpenOrSaveQuestion dlg(rApp->mainWindow(), replyUrl, _mimeType); -- cgit v1.2.1