Fix copying selected text from a message

(cherry picked from commit 48502480df)
This commit is contained in:
James Graham
2024-01-27 17:50:47 +00:00
parent 6055460bff
commit 4b1805bdaa

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")