summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2019-10-21 13:14:58 +0200
committerJohan Klokkhammer Helsing <johan.helsing@qt.io>2019-10-22 09:13:59 +0200
commit90b79bfb3bed86bc560725774a7c7e48375e3389 (patch)
treef29b91070f0c2eab1a9eb9a69207b0648e02a57c
parent9f5b96225885f927727a57b6123d8550d6c373bb (diff)
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>
-rw-r--r--src/imports/compositor/WaylandCursorItem.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/compositor/WaylandCursorItem.qml b/src/imports/compositor/WaylandCursorItem.qml
index 1fa099676..e50c82d56 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