summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-04-24 11:08:44 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-04-27 01:26:00 +0200
commit09229a68677f38f4d39a306642584d4932cd7790 (patch)
tree5f8a375ffeab3596f48764c89539c131c87e1b80
parentFix opensearch add shortcut handling (diff)
downloadrekonq-09229a68677f38f4d39a306642584d4932cd7790.tar.xz
set Main Window on KDirLister
Backported from master
-rw-r--r--src/protocolhandler.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp
index c63c37af..096aec24 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());
}
@@ -175,7 +176,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"))
@@ -350,6 +351,7 @@ void ProtocolHandler::slotMostLocalUrlResult(KJob *job)
{
if (job->error())
{
+ kDebug() << "JOB ERROR: " << job->errorString();
// TODO
}
else