Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use link to release branch in about box for exported sources (fixeds #…
…14525)

(cherry picked from commit 044379b)
  • Loading branch information
jef-n committed Mar 23, 2016
1 parent 8fb32b1 commit 0c65f7f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/app/qgisapp.cpp
Expand Up @@ -3081,8 +3081,18 @@ void QgisApp::about()
QString versionString = "<html><body><div align='center'><table width='100%'>";

versionString += "<tr>";
versionString += "<td>" + tr( "QGIS version" ) + "</td><td>" + QGis::QGIS_VERSION + "</td>";
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 );
versionString += "<td>" + tr( "QGIS version" ) + "</td><td>" + QGis::QGIS_VERSION + "</td><td>";


if ( QString( QGis::QGIS_DEV_VERSION ) == "exported" )
{
versionString += tr( "QGIS code branch" ) + QString( "</td><td><a href=\"https://github.com/qgis/QGIS/tree/release-%1_%2\">Release %1.%2</a></td>" )
.arg( QGis::QGIS_VERSION_INT / 10000 ).arg( QGis::QGIS_VERSION_INT / 100 % 100 );
}
else
{
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 );
}

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

Expand Down

0 comments on commit 0c65f7f

Please sign in to comment.