From 55739979a8e1ba2828345b57e97a65e364a4a461 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 17 Sep 2010 11:24:06 +0000 Subject: KDirModel takes ownership of the directory lister, so don't delete the directory lister manually. BUG: 196681 svn path=/trunk/KDE/kdebase/apps/; revision=1176325 --- src/dolphinpart.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/dolphinpart.cpp') diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp index f44ada304..a01e07265 100644 --- a/src/dolphinpart.cpp +++ b/src/dolphinpart.cpp @@ -78,7 +78,7 @@ DolphinPart::DolphinPart(QWidget* parentWidget, QObject* parent, const QVariantL connect(m_dirLister, SIGNAL(errorMessage(QString)), this, SLOT(slotErrorMessage(QString))); m_dolphinModel = new DolphinModel(this); - m_dolphinModel->setDirLister(m_dirLister); + m_dolphinModel->setDirLister(m_dirLister); // m_dolphinModel takes ownership of m_dirLister m_proxyModel = new DolphinSortFilterProxyModel(this); m_proxyModel->setSourceModel(m_dolphinModel); @@ -148,7 +148,6 @@ DolphinPart::~DolphinPart() { DolphinSettings::instance().save(); DolphinNewFileMenuObserver::instance().detach(m_newFileMenu); - delete m_dirLister; } void DolphinPart::createActions() -- cgit v1.3