From b92acd3e8e943dbfef3f79ee82305ab5ee969af1 Mon Sep 17 00:00:00 2001 From: Aleksei German Date: Tue, 4 May 2021 16:58:20 +0200 Subject: [PATCH] QmlDesigner: Report Bug link for QDS Task: QDS-1272 Change-Id: I1d369d2a53d6829651a8c70be77ef4e5855d775c Reviewed-by: Eike Ziller --- src/plugins/help/helpplugin.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/plugins/help/helpplugin.cpp b/src/plugins/help/helpplugin.cpp index 1857098aa9e..b25fe0aec20 100644 --- a/src/plugins/help/helpplugin.cpp +++ b/src/plugins/help/helpplugin.cpp @@ -266,11 +266,16 @@ HelpPluginPrivate::HelpPluginPrivate() Core::HelpManager::HelpModeAlways); }); + const QString qdsStandaloneEntry = "QML/Designer/StandAloneMode"; //entry from designer settings + const bool isDesigner = Core::ICore::settings()->value(qdsStandaloneEntry, false).toBool(); + action = new QAction(HelpPlugin::tr("Report Bug..."), this); cmd = ActionManager::registerAction(action, "Help.ReportBug"); ActionManager::actionContainer(Core::Constants::M_HELP)->addAction(cmd, Core::Constants::G_HELP_SUPPORT); - connect(action, &QAction::triggered, this, [] { - QDesktopServices::openUrl(QUrl("https://bugreports.qt.io/secure/CreateIssue.jspa?pid=10512")); + connect(action, &QAction::triggered, this, [isDesigner] { + const QUrl bugreportUrl = isDesigner ? QString("https://bugreports.qt.io/secure/CreateIssue.jspa?pid=11740") //QDS + : QString("https://bugreports.qt.io/secure/CreateIssue.jspa?pid=10512"); //QtC + QDesktopServices::openUrl(bugreportUrl); }); action = new QAction(HelpPlugin::tr("System Information..."), this);