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:
committed by
Carl Schwan
parent
f29bb971e0
commit
23eaa6a4c7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user