Warnings-- if modelData.seperator is not set

This commit is contained in:
David Edmundson 2014-01-29 18:39:20 +01:00
parent d43fa35c42
commit 9de921e34d

View File

@ -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)
}