Terminal: Fix Url handling

FilePath::toUrl does not pass queries correctly to QUrl.
So we use QUrl::fromUserInput directly.

Fixes: QTCREATORBUG-29850
Change-Id: If0706b3b37d03eeea87247b44f07f8a0f8915a95
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
Marcus Tillmanns
2023-11-06 09:17:54 +01:00
parent 42cc29902b
commit 201857fa68

View File

@@ -472,7 +472,7 @@ void TerminalWidget::linkActivated(const Link &link)
FilePath filePath = FilePath::fromUserInput(link.text);
if (filePath.scheme().toString().startsWith("http")) {
QDesktopServices::openUrl(filePath.toUrl());
QDesktopServices::openUrl(QUrl::fromUserInput(link.text));
return;
}