Skip to content

Commit

Permalink
Merge pull request #45364 from nirvn/about_plugins_version
Browse files Browse the repository at this point in the history
Add active python plugins' version to the about QGIS dialog to further improve quality of issue reporting
  • Loading branch information
m-kuhn committed Oct 3, 2021
2 parents 35ee59b + 2af9b0f commit 77bab94
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -5551,8 +5551,13 @@ void QgisApp::about()
#ifdef WITH_BINDINGS
if ( mPythonUtils && mPythonUtils->isEnabled() )
{
versionString += QStringLiteral( "</tr><tr><td colspan=\"4\">%1</td>" ).arg( tr( "Active Python plugins" ) );
const QStringList activePlugins = mPythonUtils->listActivePlugins();
versionString += QStringLiteral( "</tr><tr><td>%1</td><td colspan=\"3\">%2</td>" ).arg( tr( "Active Python plugins" ), activePlugins.join( "<br />" ) );
for ( const QString &plugin : activePlugins )
{
const QString version = mPythonUtils->getPluginMetadata( plugin, QStringLiteral( "version" ) );
versionString += QStringLiteral( "</tr><tr><td>%1</td><td colspan=\"3\">%2</td>" ).arg( plugin, version );
}
}
#endif

Expand Down

0 comments on commit 77bab94

Please sign in to comment.