forked from qt-creator/qt-creator
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:
@@ -236,6 +236,11 @@ IssuesWidget::IssuesWidget(QWidget *parent)
|
|||||||
connect(m_dashboards, &QComboBox::currentIndexChanged, this, [this] {
|
connect(m_dashboards, &QComboBox::currentIndexChanged, this, [this] {
|
||||||
if (m_signalBlocker.isLocked())
|
if (m_signalBlocker.isLocked())
|
||||||
return;
|
return;
|
||||||
|
const QVariant data = m_dashboards->currentData();
|
||||||
|
if (data.isValid()) {
|
||||||
|
const AxivionServer server = data.value<AxivionServer>();
|
||||||
|
switchActiveDashboardId(server.id);
|
||||||
|
}
|
||||||
reinitProjectList(m_dashboardProjects->currentText());
|
reinitProjectList(m_dashboardProjects->currentText());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user