diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-09-03 03:39:02 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-09-03 03:40:23 -0700 |
commit | a5288fb60c55261de47c6c07e51b73d8b6a35f1f (patch) | |
tree | 6875961cca6b243833a6d8732b7ae53484cc5121 /qt-ui | |
parent | e9918d03bb29568bf2ba938d3694215564149d86 (diff) | |
download | subsurface-a5288fb60c55261de47c6c07e51b73d8b6a35f1f.tar.gz |
Reintroduce the beta version naming hack
The changes in commit 3bcb634e06b7 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>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/about.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/about.cpp b/qt-ui/about.cpp index 73db74b0c..7d82808e3 100644 --- a/qt-ui/about.cpp +++ b/qt-ui/about.cpp @@ -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>" |