Skip to content

Commit

Permalink
Add active python plugins' version to the about QGIS dialog to furthe…
Browse files Browse the repository at this point in the history
…r improve quality of issue reporting
  • Loading branch information
nirvn committed Oct 2, 2021
1 parent b90e1be commit 9bbd846
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 auto &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 9bbd846

Please sign in to comment.