Disable "Select all" when no text in field/area

This commit is contained in:
miruka 2020-07-10 03:21:30 -04:00
parent 9a943120a8
commit d4a0434bd9

View File

@ -68,6 +68,7 @@ HMenu {
HMenuItem { HMenuItem {
icon.name: "select-all-text" icon.name: "select-all-text"
text: qsTr("Select all") text: qsTr("Select all")
enabled: control.length > 0
onTriggered: control.selectAll() onTriggered: control.selectAll()
} }
} }