1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-24 18:03:53 +03:00

field QQuickItem pointers for Parabolic/EventsSink

--avoid crashes when the relevant destination/origin
quickitems are deleted during their events processing
This commit is contained in:
Michail Vourlakos 2020-12-29 21:54:31 +02:00
parent 431ce6c6fa
commit 1b23e3669b
2 changed files with 3 additions and 3 deletions

View File

@ -65,8 +65,8 @@ private:
private:
QPointer<Latte::View> m_view;
QQuickItem *m_originItem{nullptr};
QQuickItem *m_destinationItem{nullptr};
QPointer<QQuickItem> m_originItem;
QPointer<QQuickItem> m_destinationItem;
};
}

View File

@ -57,9 +57,9 @@ private slots:
private:
QPointer<Latte::View> m_view;
QPointer<QQuickItem> m_currentParabolicItem;
QPointF m_lastOrphanParabolicMove;
QQuickItem *m_currentParabolicItem{nullptr};
QTimer m_parabolicItemNullifier;
};