diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-10-21 13:14:58 +0200 |
---|---|---|
committer | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-10-22 09:13:59 +0200 |
commit | 90b79bfb3bed86bc560725774a7c7e48375e3389 (patch) | |
tree | f29b91070f0c2eab1a9eb9a69207b0648e02a57c /src/imports | |
parent | 9f5b96225885f927727a57b6123d8550d6c373bb (diff) | |
download | qtwayland-90b79bfb3bed86bc560725774a7c7e48375e3389.tar.gz |
Compositor: Fix access to member of null reference
This could happen if there were no seats.
Change-Id: I4c88a5768289e2ac8a736efaa14e37d499de01c9
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/compositor/WaylandCursorItem.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/compositor/WaylandCursorItem.qml b/src/imports/compositor/WaylandCursorItem.qml index 1fa09967..e50c82d5 100644 --- a/src/imports/compositor/WaylandCursorItem.qml +++ b/src/imports/compositor/WaylandCursorItem.qml @@ -73,7 +73,7 @@ WaylandQuickItem { x: cursorItem.hotspotX + offset.x y: cursorItem.hotspotY + offset.y z: -1 - surface: cursorItem.seat.drag.icon + surface: cursorItem.seat ? cursorItem.seat.drag.icon : null Connections { target: dragIcon.surface |