From 36288df5ac48901134ca98ff8131d87ad434e2a1 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Mon, 26 Oct 2015 18:14:41 +0100 Subject: [PATCH] Fix logic (and warnings) in ModelContextMenu It was checking that a variable existed, then it used it. Now it works like the rest of the properties. REVIEW: 125809 --- .../plasmacomponents/qml/ModelContextMenu.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declarativeimports/plasmacomponents/qml/ModelContextMenu.qml b/src/declarativeimports/plasmacomponents/qml/ModelContextMenu.qml index f8fddb76c..1dc430a1d 100644 --- a/src/declarativeimports/plasmacomponents/qml/ModelContextMenu.qml +++ b/src/declarativeimports/plasmacomponents/qml/ModelContextMenu.qml @@ -71,7 +71,7 @@ PlasmaComponents.ContextMenu { text: typeof(modelData) != "undefined" ? modelData.text : model.display icon: typeof(modelData) != "undefined" ? modelData.icon : model.decoration separator: typeof(modelData) != "undefined" ? modelData.separator : model.separator === true - section: typeof(modelData) != "undefined" ? modelData.section : modelData.section === true + section: typeof(modelData) != "undefined" ? modelData.section : model.section === true onClicked: { menu.clicked(typeof(modelData) != "undefined" ? modelData : model) }