summaryrefslogtreecommitdiff
path: root/src/protocolhandler.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-12-16 15:05:03 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-12-16 15:05:03 +0100
commit0f4543652464c80c80f4471450da274194ae687b (patch)
tree46f9d8aadbb4c023a17acf02b5459985154f336f /src/protocolhandler.cpp
parentrekonq 0.3.23 (diff)
downloadrekonq-0f4543652464c80c80f4471450da274194ae687b.tar.xz
Cleaner file management
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;