Skip to content

Commit bce5ed5

Browse files
committedAug 15, 2016
exclude release name from version string (fixes #15258)
(cherry picked from commit 1391aad)
1 parent b2e7467 commit bce5ed5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎cmake_templates/qgsconfig.h.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
#define QGSCONFIG_H
66

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

1313
//used in vim src/core/qgis.cpp
1414
//The way below should work but it resolves to a number like 0110 which the compiler treats as octal I think

‎src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ static void setTitleBarText_( QWidget & qgisApp )
376376
{
377377
QString caption = QgisApp::tr( "QGIS " );
378378

379-
if ( QGis::QGIS_VERSION.endsWith( "Master" ) )
379+
if ( QGis::QGIS_RELEASE_NAME == "Master" )
380380
{
381381
caption += QString( "%1" ).arg( QGis::QGIS_DEV_VERSION );
382382
}

0 commit comments

Comments
 (0)
Please sign in to comment.