From 584883f9bffabc787d1a21366293d98768b1ffd4 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 25 Sep 2024 14:08:02 +0200 Subject: [PATCH] Axivion: Switch active dashboard on change ..otherwise we fetch the project list from the wrong dashboard server. Amends ddd4fd24e697d6f9d25aeaf0849b75797e13d802. Change-Id: I3e0c24f5ba3182db27889a4f90f709765aff3160 Reviewed-by: hjk Reviewed-by: Mohammad Mehdi Salem Naraghi --- src/plugins/axivion/axivionperspective.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/axivion/axivionperspective.cpp b/src/plugins/axivion/axivionperspective.cpp index 86baa4b50ff..336c672accb 100644 --- a/src/plugins/axivion/axivionperspective.cpp +++ b/src/plugins/axivion/axivionperspective.cpp @@ -236,6 +236,11 @@ IssuesWidget::IssuesWidget(QWidget *parent) connect(m_dashboards, &QComboBox::currentIndexChanged, this, [this] { if (m_signalBlocker.isLocked()) return; + const QVariant data = m_dashboards->currentData(); + if (data.isValid()) { + const AxivionServer server = data.value(); + switchActiveDashboardId(server.id); + } reinitProjectList(m_dashboardProjects->currentText()); });