From 9957339a67dd2edc057712e3bbd08bd3d964d35b Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Wed, 11 Sep 2024 15:04:36 +0200 Subject: [PATCH] Core: Fix url encoding in markdown text Otherwise spaces break the links Change-Id: Ib9ce1c3409d07bcba8b79f8269c9af95228f5692 Reviewed-by: Alessandro Portale --- src/plugins/coreplugin/plugininstallwizard.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/plugins/coreplugin/plugininstallwizard.cpp b/src/plugins/coreplugin/plugininstallwizard.cpp index dc3d6c3fa9b..4bb7fd263c0 100644 --- a/src/plugins/coreplugin/plugininstallwizard.cpp +++ b/src/plugins/coreplugin/plugininstallwizard.cpp @@ -342,13 +342,14 @@ public: !m_data->installIntoApplication); installLocation.ensureWritableDir(); - m_summaryLabel->setText(Tr::tr("%1 will be installed into %2.") - .arg(QString("[%1](%2)") - .arg(m_data->sourcePath.fileName()) - .arg(m_data->sourcePath.parentDir().toUrl().toString())) - .arg(QString("[%1](%2)") - .arg(installLocation.fileName()) - .arg(installLocation.toUrl().toString()))); + m_summaryLabel->setText( + Tr::tr("%1 will be installed into %2.") + .arg(QString("[%1](%2)") + .arg(m_data->sourcePath.fileName()) + .arg(m_data->sourcePath.parentDir().toUrl().toString(QUrl::FullyEncoded))) + .arg(QString("[%1](%2)") + .arg(installLocation.fileName()) + .arg(installLocation.toUrl().toString(QUrl::FullyEncoded)))); m_loadImmediately->setVisible(m_data->pluginSpec && m_data->pluginSpec->isSoftLoadable()); }