diff options
| author | Peter Penz <[email protected]> | 2010-09-17 11:24:06 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-09-17 11:24:06 +0000 |
| commit | 55739979a8e1ba2828345b57e97a65e364a4a461 (patch) | |
| tree | 07aef8117e16dfc711d93bbf0fe5f655fd43c8f4 /src/dolphinpart.cpp | |
| parent | 45d7ec30c4589b46cf5d9e25ca59e6603e124e02 (diff) | |
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
Diffstat (limited to 'src/dolphinpart.cpp')
| -rw-r--r-- | src/dolphinpart.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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() |
