intellij-qml icon indicating copy to clipboard operation
intellij-qml copied to clipboard

Double negation falsely flagged as an error

Open rengel-de opened this issue 6 years ago • 0 comments

The value of the enabled property (two double negations) is falsely flagged as an error:

Action {
    id: cutAction
    text: "Cu&t"
    shortcut: StandardKey.Cut
    iconName: "edit-cut"
    // In PyCharm, this is falsely flagged as a syntax error.
    enabled: (!!activeFocusItem && !!activeFocusItem["cut"])
    onTriggered: activeFocusItem.cut()
}

rengel-de avatar Nov 15 '18 09:11 rengel-de