Fix copying selected text from a message

This commit is contained in:
James Graham
2024-01-27 17:50:47 +00:00
committed by Tobias Fella
parent efb3b8f38c
commit 48502480df

View File

@@ -135,7 +135,7 @@ Loader {
Kirigami.Action {
text: i18n("Copy")
icon.name: "edit-copy"
onTriggered: Clipboard.saveText(root.selectedText.length > 0 ? root.plainText : root.selectedText)
onTriggered: Clipboard.saveText(root.selectedText.length > 0 ? root.selectedText : root.plainText)
},
Kirigami.Action {
text: i18nc("@action:button 'Report' as in 'Report this event to the administrators'", "Report")