diff options
Diffstat (limited to 'src/protocolhandler.cpp')
-rw-r--r-- | src/protocolhandler.cpp | 5 |
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); } |