From 1938ad54d4ee640f04d24bad3b690095bc9b8668 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Sun, 9 Nov 2014 18:08:29 +0100 Subject: [PATCH] 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 --- dolphin/src/kitemviews/kitemlistwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphin/src/kitemviews/kitemlistwidget.cpp b/dolphin/src/kitemviews/kitemlistwidget.cpp index e7d2951b9f..46b75588f3 100644 --- a/dolphin/src/kitemviews/kitemlistwidget.cpp +++ b/dolphin/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; } }