Skip to content

Commit 204f55a

Browse files
committed
gta5view 1.10.0 release
1 parent de17747 commit 204f55a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ProfileInterface.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ ProfileInterface::ProfileInterface(ProfileDatabase *profileDB, CrewDatabase *cre
9393
saSpacerItem = nullptr;
9494

9595
updatePalette();
96-
QString appVersion = GTA5SYNC_APPVER;
97-
#ifndef GTA5SYNC_BUILDTYPE_REL
96+
QString appVersion = QApplication::applicationVersion();
97+
const char* literalBuildType = GTA5SYNC_BUILDTYPE;
9898
#ifdef GTA5SYNC_COMMIT
99-
if (!appVersion.contains("-")) { appVersion = appVersion % "-" % GTA5SYNC_COMMIT; }
100-
#endif
99+
if ((strcmp(literalBuildType, REL_BUILDTYPE) != 0) && !appVersion.contains("-"))
100+
appVersion = appVersion % "-" % GTA5SYNC_COMMIT;
101101
#endif
102102
ui->labVersion->setText(QString("%1 %2").arg(GTA5SYNC_APPSTR, appVersion));
103103
ui->saProfileContent->setFilesDropEnabled(true);

UserInterface.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ UserInterface::UserInterface(ProfileDatabase *profileDB, CrewDatabase *crewDB, D
8080
setWindowTitle(defaultWindowTitle.arg(tr("Select Profile")));
8181
QString appVersion = QApplication::applicationVersion();
8282
const char* literalBuildType = GTA5SYNC_BUILDTYPE;
83-
const QString buildType = tr(literalBuildType);
8483
#ifdef GTA5SYNC_COMMIT
8584
if ((strcmp(literalBuildType, REL_BUILDTYPE) != 0) && !appVersion.contains("-"))
8685
appVersion = appVersion % "-" % GTA5SYNC_COMMIT;

0 commit comments

Comments
 (0)