┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2014-11-09 18:08:29 +0100
committerFrank Reininghaus <[email protected]>2014-11-09 18:08:29 +0100
commitb73ed8eba98f8a038e10c8f5f3ef6b2e432e01c1 (patch)
treef37484905cafc463c94e1fe80d13bd99617cb1fe
parentcbe1d6aca4b4d98c2299d0a9b38c0584413dfd74 (diff)
Use deleteLater() to delete the selection toggle in KItemListWidget
This patch should make a crash with a backtrace as provided in the bug report impossible. I'm not sure if this would really prevent the crash - it looks like the actual cause of the problem could be in QGraphicsView or anywhere else, but it's hard to tell because the bug was reported just once and does not seem reproducible. But I'm pretty sure that this change doesn't make anything worse. BUG: 334785 REVIEW: 121087
-rw-r--r--src/kitemviews/kitemlistwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kitemviews/kitemlistwidget.cpp b/src/kitemviews/kitemlistwidget.cpp
index e7d2951b9..46b75588f 100644
--- a/src/kitemviews/kitemlistwidget.cpp
+++ b/src/kitemviews/kitemlistwidget.cpp
@@ -474,7 +474,7 @@ qreal KItemListWidget::hoverOpacity() const
void KItemListWidget::slotHoverAnimationFinished()
{
if (!m_hovered) {
- delete m_selectionToggle;
+ m_selectionToggle->deleteLater();
m_selectionToggle = 0;
}
}