summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-12-01 07:36:54 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-12-01 07:36:54 +0100
commitf1ce45ccb291bbbd834dc4b1db4ec0dcdbc6d8ec (patch)
tree4dd7df6e73002b6d828efbbfd20a26c9cff3f1df /src/webpage.cpp
parentremove ugly hack string in mainview (diff)
downloadrekonq-f1ce45ccb291bbbd834dc4b1db4ec0dcdbc6d8ec.tar.xz
Open local files in external applications
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp7
1 files changed, 6 insertions, 1 deletions
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);