Warnings-- if modelData.seperator is not set
This commit is contained in:
parent
d43fa35c42
commit
9de921e34d
@ -70,7 +70,7 @@ PlasmaComponents.ContextMenu {
|
|||||||
//for QAbstractItemModel* it doesn't. Not checking causes errors
|
//for QAbstractItemModel* it doesn't. Not checking causes errors
|
||||||
text: typeof(modelData) != "undefined" ? modelData.text : model.display
|
text: typeof(modelData) != "undefined" ? modelData.text : model.display
|
||||||
icon: typeof(modelData) != "undefined" ? modelData.icon : model.decoration
|
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: {
|
onClicked: {
|
||||||
menu.clicked(typeof(modelData) != "undefined" ? modelData : model)
|
menu.clicked(typeof(modelData) != "undefined" ? modelData : model)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user