From d4a0434bd988f281b900e5b4f7434d36795a1653 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 10 Jul 2020 03:21:30 -0400 Subject: [PATCH] Disable "Select all" when no text in field/area --- src/gui/Base/HTextContextMenu.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/Base/HTextContextMenu.qml b/src/gui/Base/HTextContextMenu.qml index 03f76a1a..8d7595c3 100644 --- a/src/gui/Base/HTextContextMenu.qml +++ b/src/gui/Base/HTextContextMenu.qml @@ -68,6 +68,7 @@ HMenu { HMenuItem { icon.name: "select-all-text" text: qsTr("Select all") + enabled: control.length > 0 onTriggered: control.selectAll() } }