mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +00:00
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
This commit is contained in:
parent
cbe1d6aca4
commit
b73ed8eba9
|
@ -474,7 +474,7 @@ qreal KItemListWidget::hoverOpacity() const
|
||||||
void KItemListWidget::slotHoverAnimationFinished()
|
void KItemListWidget::slotHoverAnimationFinished()
|
||||||
{
|
{
|
||||||
if (!m_hovered) {
|
if (!m_hovered) {
|
||||||
delete m_selectionToggle;
|
m_selectionToggle->deleteLater();
|
||||||
m_selectionToggle = 0;
|
m_selectionToggle = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue