X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/12f15322b3fe6e6c5045d8b3e4f319c0eea7e3aa..39f89141b06c:/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()