forked from qt-creator/qt-creator
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:
@@ -472,7 +472,7 @@ void TerminalWidget::linkActivated(const Link &link)
|
|||||||
FilePath filePath = FilePath::fromUserInput(link.text);
|
FilePath filePath = FilePath::fromUserInput(link.text);
|
||||||
|
|
||||||
if (filePath.scheme().toString().startsWith("http")) {
|
if (filePath.scheme().toString().startsWith("http")) {
|
||||||
QDesktopServices::openUrl(filePath.toUrl());
|
QDesktopServices::openUrl(QUrl::fromUserInput(link.text));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user