forked from qt-creator/qt-creator
Axivion: Use version name for display
This is in line with other axivion plugins and the expected way of displaying versions. Change-Id: Idda8233a536a50b526d5927a5b5d2021aea3f3c5 Reviewed-by: Mohammad Mehdi Salem Naraghi <mehdi.salem@qt.io> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -644,7 +644,7 @@ void IssuesWidget::updateBasicProjectInfo(const std::optional<Dto::ProjectInfoDt
|
|||||||
const std::vector<Dto::AnalysisVersionDto> &versions = info->versions;
|
const std::vector<Dto::AnalysisVersionDto> &versions = info->versions;
|
||||||
for (auto it = versions.crbegin(); it != versions.crend(); ++it) {
|
for (auto it = versions.crbegin(); it != versions.crend(); ++it) {
|
||||||
const Dto::AnalysisVersionDto &version = *it;
|
const Dto::AnalysisVersionDto &version = *it;
|
||||||
versionLabels.append(version.label.value_or(version.name));
|
versionLabels.append(version.name);
|
||||||
m_versionDates.append(version.date);
|
m_versionDates.append(version.date);
|
||||||
}
|
}
|
||||||
m_versionStart->addItems(versionLabels);
|
m_versionStart->addItems(versionLabels);
|
||||||
|
Reference in New Issue
Block a user