mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 16:10:40 +02:00
fix the update dialog to not show blank lines for missing version numbers
This commit is contained in:
parent
343bc2a747
commit
7bb21d3700
1 changed files with 6 additions and 4 deletions
|
@ -31,12 +31,14 @@ UpdateDialog::UpdateDialog(QQuickItem* parent) :
|
|||
|
||||
_releaseNotes = "";
|
||||
for (int i = latestVersion; i > currentVersion; i--) {
|
||||
if (applicationUpdater.data()->getBuildData().contains(i)) {
|
||||
QString releaseNotes = applicationUpdater.data()->getBuildData()[i]["releaseNotes"];
|
||||
releaseNotes.remove("<br />");
|
||||
releaseNotes.remove(QRegExp("^\n+"));
|
||||
_releaseNotes += "\n" + QString().sprintf("%d", i) + "\n" + releaseNotes + "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const QString& UpdateDialog::updateAvailableDetails() const {
|
||||
return _updateAvailableDetails;
|
||||
|
|
Loading…
Reference in a new issue