Skip to content

Commit

Permalink
Don't insert links when handling HTML strings
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed May 26, 2023
1 parent 574698c commit 5333ee0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/qml/editorwidgets/TextEdit.qml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ EditorWidgetBase {
wrapMode: Text.Wrap
textFormat: config['IsMultiline'] === true && config['UseHtml'] ? TextEdit.RichText : TextEdit.AutoText

text: value == null ? '' : config['IsMultiline'] === true ? stringUtilities.insertLinks(value) : stringUtilities.insertLinks(value).replace('\n','')
text: value == null ? '' : config['IsMultiline'] === true
? config['UseHtml'] === true ? value : stringUtilities.insertLinks(value)
: stringUtilities.insertLinks(value).replace('\n','')

onLinkActivated: Qt.openUrlExternally(link)
}
Expand Down

1 comment on commit 5333ee0

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.