Fix web shortcuts not doing anything

This is because we're passing a QUrl into a QString, we need to turn it
into a string explicitly.

BUG: 496434
This commit is contained in:
Joshua Goins
2024-12-13 14:46:17 -05:00
committed by Carl Schwan
parent f29bb971e0
commit 23eaa6a4c7

View File

@@ -217,7 +217,7 @@ Loader {
model: WebShortcutModel {
id: webshortcutmodel
selectedText: root.selectedText.length > 0 ? root.selectedText : root.plainText
onOpenUrl: RoomManager.resolveResource(url)
onOpenUrl: url => RoomManager.resolveResource(url.toString())
}
delegate: QQC2.MenuItem {
text: model.display