Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix arguments in QgisApp::about() for exported source code
  • Loading branch information
github-actions[bot] committed Apr 26, 2020
1 parent be15452 commit 7288f76
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/app/qgisapp.cpp
Expand Up @@ -5011,8 +5011,16 @@ void QgisApp::about()

if ( QString( Qgis::devVersion() ) == QLatin1String( "exported" ) )
{
versionString += QStringLiteral( "%1</td><td><a href=\"https://github.com/qgis/QGIS/tree/release-%1_%2\">Release %1.%2</a></td>" )
.arg( tr( "QGIS code branch" ) ).arg( Qgis::versionInt() / 10000 ).arg( Qgis::versionInt() / 100 % 100 );
versionString += tr( "QGIS code branch" );
if ( Qgis::version().endsWith( QLatin1String( "Master" ) ) )
{
versionString += QLatin1String( "</td><td><a href=\"https://github.com/qgis/QGIS/tree/master\">master</a></td>" );
}
else
{
versionString += QStringLiteral( "</td><td><a href=\"https://github.com/qgis/QGIS/tree/release-%1_%2\">Release %1.%2</a></td>" )
.arg( Qgis::versionInt() / 10000 ).arg( Qgis::versionInt() / 100 % 100 );
}
}
else
{
Expand Down

0 comments on commit 7288f76

Please sign in to comment.