mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-09 04:30:43 +00:00
Show commit id in title bar for all except Release versions.
This commit is contained in:
parent
2568f79a99
commit
376d04803a
@ -177,6 +177,11 @@ QString getGraphicsEngine()
|
|||||||
QString getBranchVersion()
|
QString getBranchVersion()
|
||||||
{
|
{
|
||||||
QString version = STR_TR_AppVersion;
|
QString version = STR_TR_AppVersion;
|
||||||
|
|
||||||
|
if (!((ReleaseStatus.compare("r", Qt::CaseInsensitive)==0) ||
|
||||||
|
(ReleaseStatus.compare("release", Qt::CaseInsensitive)==0)))
|
||||||
|
version += " ("+GIT_REVISION + ")";
|
||||||
|
|
||||||
if (GIT_BRANCH != "master") {
|
if (GIT_BRANCH != "master") {
|
||||||
version += " [Branch: " + GIT_BRANCH + "]";
|
version += " [Branch: " + GIT_BRANCH + "]";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user