Reintroduce the beta version naming hack

The changes in commit 3bcb634e06 were a bit over ambitious. There was a
reason why I had this hack in place and preparing for the beta reminded me
of that. Oops. Oh well. The code is back, adapted for the current release
cylcle.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-09-03 03:39:02 -07:00
parent e9918d03bb
commit a5288fb60c

View file

@ -10,6 +10,11 @@ SubsurfaceAbout::SubsurfaceAbout(QWidget *parent, Qt::WindowFlags f) : QDialog(p
setWindowModality(Qt::ApplicationModal);
QString versionString(subsurface_git_version());
QStringList readableVersions = QStringList() << "4.4.95" << "4.5 Beta 1" <<
"4.4.96" << "4.5 Beta 2" <<
"4.4.97" << "4.5 Beta 3";
if (readableVersions.contains(versionString))
versionString = readableVersions[readableVersions.indexOf(versionString) + 1];
ui.aboutLabel->setText(tr("<span style='font-size: 18pt; font-weight: bold;'>"
"Subsurface %1 </span><br><br>"