Two KFilePreviewGenerator's operating on the same KDirModel can lead to infinite loops of preview generation. If view is not delete'd (e.g. as a result of a FolderExpander), then m_previewGenerator won't be either: delete it manually to prevent having two active at once.

svn path=/trunk/KDE/kdebase/apps/; revision=914799
This commit is contained in:
Simon Paul St James 2009-01-21 19:43:41 +00:00
parent 02781d747d
commit 5b5f0c9d7e

View file

@ -1360,11 +1360,15 @@ void DolphinView::deleteView()
}
view = 0;
// m_previewGenerator's parent is not always destroyed, and we
// don't want two active at once - manually delete.
delete m_previewGenerator;
m_previewGenerator = 0;
m_iconsView = 0;
m_detailsView = 0;
m_columnView = 0;
m_fileItemDelegate = 0;
m_previewGenerator = 0;
m_toolTipManager = 0;
}
}