Skip to content

Commit 044379b

Browse files
committed
use link to release branch in about box for exported sources (fixeds #14525)
1 parent 6c1201c commit 044379b

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/app/qgisapp.cpp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3080,8 +3080,18 @@ void QgisApp::about()
30803080
QString versionString = "<html><body><div align='center'><table width='100%'>";
30813081

30823082
versionString += "<tr>";
3083-
versionString += "<td>" + tr( "QGIS version" ) + "</td><td>" + QGis::QGIS_VERSION + "</td>";
3084-
versionString += "<td>" + tr( "QGIS code revision" ) + QString( "</td><td><a href=\"https://github.com/qgis/QGIS/commit/%1\">%1</a></td>" ).arg( QGis::QGIS_DEV_VERSION );
3083+
versionString += "<td>" + tr( "QGIS version" ) + "</td><td>" + QGis::QGIS_VERSION + "</td><td>";
3084+
3085+
3086+
if ( QString( QGis::QGIS_DEV_VERSION ) == "exported" )
3087+
{
3088+
versionString += tr( "QGIS code branch" ) + QString( "</td><td><a href=\"https://github.com/qgis/QGIS/tree/release-%1_%2\">Release %1.%2</a></td>" )
3089+
.arg( QGis::QGIS_VERSION_INT / 10000 ).arg( QGis::QGIS_VERSION_INT / 100 % 100 );
3090+
}
3091+
else
3092+
{
3093+
versionString += tr( "QGIS code revision" ) + QString( "</td><td><a href=\"https://github.com/qgis/QGIS/commit/%1\">%1</a></td>" ).arg( QGis::QGIS_DEV_VERSION );
3094+
}
30853095

30863096
versionString += "</tr><tr>";
30873097

0 commit comments

Comments
 (0)