summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-04-24 11:08:44 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-04-24 11:08:44 +0200
commit036c2d461b53e540cc506fcdbc188a72e46fb89e (patch)
tree90b292fa18edea4cc195175554575bff7320612d /src
parentDo not show "closed tabs" page after crash when directly opening an URL (diff)
downloadrekonq-036c2d461b53e540cc506fcdbc188a72e46fb89e.tar.xz
set Main Window on KDirLister
Diffstat (limited to 'src')
-rw-r--r--src/protocolhandler.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp
index 46fb0c39..657e8a21 100644
--- a/src/protocolhandler.cpp
+++ b/src/protocolhandler.cpp
@@ -94,6 +94,7 @@ ProtocolHandler::ProtocolHandler(QObject *parent)
, _lister(new KDirLister(this))
, _frame(0)
{
+ _lister->setMainWindow(rApp->mainWindow());
}
@@ -168,7 +169,7 @@ bool ProtocolHandler::preHandling(const QNetworkRequest &request, QWebFrame *fra
return true;
}
-
+
// "apt" handling
// NOTE: this is a stupid workaround to ensure apt protocol works
if (_url.protocol() == QL1S("apt"))
@@ -343,6 +344,7 @@ void ProtocolHandler::slotMostLocalUrlResult(KJob *job)
{
if (job->error())
{
+ kDebug() << "JOB ERROR: " << job->errorString();
// TODO
}
else