summaryrefslogtreecommitdiff
path: root/src/protocolhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/protocolhandler.cpp')
-rw-r--r--src/protocolhandler.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp
index c66af403..1b60d0dc 100644
--- a/src/protocolhandler.cpp
+++ b/src/protocolhandler.cpp
@@ -104,17 +104,13 @@ bool ProtocolHandler::handle(const QNetworkRequest &request, QWebFrame *frame)
if(url.protocol() == QLatin1String("file"))
{
QFileInfo fileInfo(url.path());
- if(fileInfo.isFile())
- {
- new KRun(url, 0, 0, true);
- }
- else // dir
+ if(fileInfo.isDir())
{
QString html = dirHandling(url);
frame->setHtml(html);
Application::instance()->mainWindow()->mainView()->urlBar()->setUrl(url);
+ return true;
}
- return true;
}
return false;