┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Paul St James <[email protected]>2009-01-21 19:43:41 +0000
committerSimon Paul St James <[email protected]>2009-01-21 19:43:41 +0000
commit5b5f0c9d7e5887e39b9dcf080899ca52de4e973f (patch)
tree846228c045141be5c298ad7ddacd72849e4f9898 /src
parent02781d747d87f6baef9c8a0ee347357f9e201764 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/dolphinview.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp
index ae120777a..cfe447e37 100644
--- a/src/dolphinview.cpp
+++ b/src/dolphinview.cpp
@@ -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;
}
}