Browse Source

fix retranslateUi

Syping 4 months ago
parent
commit
17014925c5
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      ProfileInterface.cpp
  2. 1
    1
      UserInterface.cpp

+ 1
- 1
ProfileInterface.cpp View File

@@ -1683,7 +1683,7 @@ void ProfileInterface::retranslateUi()
1683 1683
     QString appVersion = GTA5SYNC_APPVER;
1684 1684
 #ifndef GTA5SYNC_BUILDTYPE_REL
1685 1685
 #ifdef GTA5SYNC_COMMIT
1686
-    appVersion = appVersion % "-" % GTA5SYNC_COMMIT;
1686
+    if (!appVersion.contains("-")) { appVersion = appVersion % "-" % GTA5SYNC_COMMIT; }
1687 1687
 #endif
1688 1688
 #endif
1689 1689
     ui->labVersion->setText(QString("%1 %2").arg(GTA5SYNC_APPSTR, appVersion));

+ 1
- 1
UserInterface.cpp View File

@@ -642,7 +642,7 @@ void UserInterface::retranslateUi()
642 642
     QString appVersion = GTA5SYNC_APPVER;
643 643
 #ifndef GTA5SYNC_BUILDTYPE_REL
644 644
 #ifdef GTA5SYNC_COMMIT
645
-    appVersion = appVersion % "-" % GTA5SYNC_COMMIT;
645
+    if (!appVersion.contains("-")) { appVersion = appVersion % "-" % GTA5SYNC_COMMIT; }
646 646
 #endif
647 647
 #endif
648 648
     ui->labVersion->setText(QString("%1 %2").arg(GTA5SYNC_APPSTR, appVersion));