summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2017-12-03 09:45:28 +0000
committerHolger Freyther <holger+qt@freyther.de>2017-12-04 20:38:08 +0000
commita028e8328056979f09e3dd35ded54890dbef1fd9 (patch)
tree55a1a60a93261fcec63c76e944fe76625a087ce4
parent163764be406dd6f64dbd4affd6c294359f00501e (diff)
democompositor: Use == to compare the appEntry and not ===
The empty/invalid QVariant is not an identity for nil. Use the equality operator instead. Change-Id: Idec99cdc7cefb0fef1c2e3edb2ff3183b272c281 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
-rw-r--r--wayland/democompositor/qml/Screen.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/wayland/democompositor/qml/Screen.qml b/wayland/democompositor/qml/Screen.qml
index 2986562..65df18f 100644
--- a/wayland/democompositor/qml/Screen.qml
+++ b/wayland/democompositor/qml/Screen.qml
@@ -189,7 +189,7 @@ WaylandOutput {
pressedColor: pressedCol
text.maximumLineCount: 1
- text.text: winItem.appEntry === null ? "Untitled" : winItem.appEntry.appName
+ text.text: winItem.appEntry == null ? "Untitled" : winItem.appEntry.appName
text.elide: Text.ElideRight
text.color: textCol
onTriggered: {
@@ -202,7 +202,7 @@ WaylandOutput {
}
onSlideTrigger: {
//console.log("slide " + winItem + " : " + winItem.shellSurface.surface)
- winItem.appEntry === null ?
+ winItem.appEntry == null ?
winItem.shellSurface.surface.client.close() :
launcher.stop(winItem.appEntry, 5000);
}