Commit bfc4dadd authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Store dnd icon surface in a QPointer

If the drag-and-drop icon has been destroyed, return a nullptr rather
than a dangling pointer.

BUG: 428399
parent 18df2451
...@@ -29,8 +29,7 @@ public: ...@@ -29,8 +29,7 @@ public:
SeatInterface *seat; SeatInterface *seat;
DataSourceInterface *source = nullptr; DataSourceInterface *source = nullptr;
SurfaceInterface *surface = nullptr; SurfaceInterface *surface = nullptr;
SurfaceInterface *icon = nullptr; QPointer<SurfaceInterface> icon;
QPointer<DataSourceInterface> selection; QPointer<DataSourceInterface> selection;
struct Drag { struct Drag {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment