Skip to content
Snippets Groups Projects
Commit 68ad93f5 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

[konheko] Add scheme to links, if it is missing

parent 12781fb2
No related branches found
No related tags found
No related merge requests found
Pipeline #173 passed
......@@ -11,7 +11,7 @@ Label {
// Link color doesn't work with textFormat Text.RichText...
//linkColor: Theme.highlightColor
font.pixelSize: Theme.fontSizeSmall
onLinkActivated: Qt.openUrlExternally(link)
onLinkActivated: Qt.openUrlExternally(link.match(/:\/\//) ? link : ('http://' + link))
wrapMode: Text.Wrap
width: Math.min(messageText.implicitWidth, bubble.fullMessageWidth)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment