Axivion: Switch active dashboard on change

..otherwise we fetch the project list from the wrong
dashboard server.
Amends ddd4fd24e6.

Change-Id: I3e0c24f5ba3182db27889a4f90f709765aff3160
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Mohammad Mehdi Salem Naraghi <mehdi.salem@qt.io>
This commit is contained in:
Christian Stenger
2024-09-25 14:08:02 +02:00
parent 47b03783d2
commit 584883f9bf

View File

@@ -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<AxivionServer>();
switchActiveDashboardId(server.id);
}
reinitProjectList(m_dashboardProjects->currentText());
});