Skip to content
Permalink
Browse files

use link to release branch in about box for exported sources (fixeds #…

  • Loading branch information
jef-n committed Mar 18, 2016
1 parent 6c1201c commit 044379b758a286d8d65d9d5181b776096ba7c737
Showing with 12 additions and 2 deletions.
  1. +12 −2 src/app/qgisapp.cpp
@@ -3080,8 +3080,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>";

0 comments on commit 044379b

Please sign in to comment.
You can’t perform that action at this time.