summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-13 10:29:01 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-13 10:29:01 +0200
commit40bb017d865cf9622c23e312606b425fe5fdbad0 (patch)
tree01e9c728c0790736e3a37d22089a945786438b3c
parentMerge branch 'master' of gitorious.org:rekonq/mainline (diff)
downloadrekonq-40bb017d865cf9622c23e312606b425fe5fdbad0.tar.xz
Fix crash on close file: tabs
BUG:237426
-rw-r--r--src/protocolhandler.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/protocolhandler.cpp b/src/protocolhandler.cpp
index 27a09737..d710c24c 100644
--- a/src/protocolhandler.cpp
+++ b/src/protocolhandler.cpp
@@ -73,7 +73,6 @@ ProtocolHandler::ProtocolHandler(QObject *parent)
ProtocolHandler::~ProtocolHandler()
{
- delete _lister;
}
@@ -196,7 +195,7 @@ bool ProtocolHandler::postHandling(const QNetworkRequest &request, QWebFrame *fr
if(_lister)
delete _lister;
- _lister = new KDirLister;
+ _lister = new KDirLister(this);
connect(_lister, SIGNAL(newItems(const KFileItemList &)), this, SLOT(showResults(const KFileItemList &)));
_lister->openUrl(_url);
@@ -319,7 +318,7 @@ void ProtocolHandler::slotMostLocalUrlResult(KJob *job)
if(_lister)
delete _lister;
- _lister = new KDirLister;
+ _lister = new KDirLister(this);
connect(_lister, SIGNAL(newItems(const KFileItemList &)), this, SLOT(showResults(const KFileItemList &)));
_lister->openUrl(_url);
}