From 17014925c541f83e556dc4ab80470ca66b0470b3 Mon Sep 17 00:00:00 2001 From: Syping Date: Mon, 30 Jul 2018 02:54:51 +0200 Subject: [PATCH] fix retranslateUi --- ProfileInterface.cpp | 2 +- UserInterface.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ProfileInterface.cpp b/ProfileInterface.cpp index 9eff454..26344c1 100644 --- a/ProfileInterface.cpp +++ b/ProfileInterface.cpp @@ -1683,7 +1683,7 @@ void ProfileInterface::retranslateUi() QString appVersion = GTA5SYNC_APPVER; #ifndef GTA5SYNC_BUILDTYPE_REL #ifdef GTA5SYNC_COMMIT - appVersion = appVersion % "-" % GTA5SYNC_COMMIT; + if (!appVersion.contains("-")) { appVersion = appVersion % "-" % GTA5SYNC_COMMIT; } #endif #endif ui->labVersion->setText(QString("%1 %2").arg(GTA5SYNC_APPSTR, appVersion)); diff --git a/UserInterface.cpp b/UserInterface.cpp index 9e8d68e..23efa81 100644 --- a/UserInterface.cpp +++ b/UserInterface.cpp @@ -642,7 +642,7 @@ void UserInterface::retranslateUi() QString appVersion = GTA5SYNC_APPVER; #ifndef GTA5SYNC_BUILDTYPE_REL #ifdef GTA5SYNC_COMMIT - appVersion = appVersion % "-" % GTA5SYNC_COMMIT; + if (!appVersion.contains("-")) { appVersion = appVersion % "-" % GTA5SYNC_COMMIT; } #endif #endif ui->labVersion->setText(QString("%1 %2").arg(GTA5SYNC_APPSTR, appVersion));