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
This commit is contained in:
parent
d5ca50deb3
commit
74c1b0f336
1 changed files with 1 additions and 2 deletions
|
@ -29,8 +29,7 @@ public:
|
|||
SeatInterface *seat;
|
||||
DataSourceInterface *source = nullptr;
|
||||
SurfaceInterface *surface = nullptr;
|
||||
SurfaceInterface *icon = nullptr;
|
||||
|
||||
QPointer<SurfaceInterface> icon;
|
||||
QPointer<DataSourceInterface> selection;
|
||||
|
||||
struct Drag {
|
||||
|
|
Loading…
Reference in a new issue