From a5288fb60c55261de47c6c07e51b73d8b6a35f1f Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 3 Sep 2015 03:39:02 -0700 Subject: 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 --- qt-ui/about.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qt-ui') 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("" "Subsurface %1

" -- cgit v1.2.3-70-g09d2