From 40bb017d865cf9622c23e312606b425fe5fdbad0 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 13 May 2010 10:29:01 +0200 Subject: Fix crash on close file: tabs BUG:237426 --- src/protocolhandler.cpp | 5 ++--- 1 file 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); } -- cgit v1.2.1