From 9de921e34d240c1d1da1092fa25cb111ad6aeb05 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 29 Jan 2014 18:39:20 +0100 Subject: [PATCH] Warnings-- if modelData.seperator is not set --- .../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 01c78cd18..7d097235b 100644 --- a/src/declarativeimports/plasmacomponents/qml/ModelContextMenu.qml +++ b/src/declarativeimports/plasmacomponents/qml/ModelContextMenu.qml @@ -70,7 +70,7 @@ PlasmaComponents.ContextMenu { //for QAbstractItemModel* it doesn't. Not checking causes errors text: typeof(modelData) != "undefined" ? modelData.text : model.display icon: typeof(modelData) != "undefined" ? modelData.icon : model.decoration - separator: typeof(modelData) != "undefined" ? modelData.separator : model.separator + separator: typeof(modelData) != "undefined" ? modelData.separator : model.separator === true onClicked: { menu.clicked(typeof(modelData) != "undefined" ? modelData : model) }