Skip to content

Commit

Permalink
exclude release name from version string (fixes #15258)
Browse files Browse the repository at this point in the history
(cherry picked from commit 1391aad)
  • Loading branch information
jef-n committed Aug 15, 2016
1 parent b2e7467 commit bce5ed5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmake_templates/qgsconfig.h.in
Expand Up @@ -5,10 +5,10 @@
#define QGSCONFIG_H

// Version must be specified according to
// <int>.<int>.<int>-<any text>.
// <int>.<int>.<int>"
// or else upgrading old project file will not work
// reliably.
#define VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}-${RELEASE_NAME}"
#define VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}"

//used in vim src/core/qgis.cpp
//The way below should work but it resolves to a number like 0110 which the compiler treats as octal I think
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -376,7 +376,7 @@ static void setTitleBarText_( QWidget & qgisApp )
{
QString caption = QgisApp::tr( "QGIS " );

if ( QGis::QGIS_VERSION.endsWith( "Master" ) )
if ( QGis::QGIS_RELEASE_NAME == "Master" )
{
caption += QString( "%1" ).arg( QGis::QGIS_DEV_VERSION );
}
Expand Down

0 comments on commit bce5ed5

Please sign in to comment.