Skip to content

Commit 0c65f7f

Browse files
committed
use link to release branch in about box for exported sources (fixeds #14525)
(cherry picked from commit 044379b)
1 parent 8fb32b1 commit 0c65f7f

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/app/qgisapp.cpp

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

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

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

0 commit comments

Comments
 (0)