Skip to content

Commit 1391aad

Browse files
committed
exclude release name from version string
1 parent 977b5f2 commit 1391aad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmake_templates/qgsconfig.h.in

+2-2
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

+1-1
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)