Skip to content

Commit

Permalink
ALWAYS load processing plugin in qgis_process tool
Browse files Browse the repository at this point in the history
Otherwise on a new install where QGIS application is not available
and has never been run the processing plugin will NOT be loaded
by default, so qgis_process won't be able to access all the
algorithms and providers this supplies

Fixes #37989
  • Loading branch information
nyalldawson committed Oct 13, 2020
1 parent fc8d916 commit bc0df6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/process/qgsprocess.cpp
Expand Up @@ -363,7 +363,7 @@ void QgsProcessingExec::loadPlugins()
const QStringList plugins = mPythonUtils->pluginList();
for ( const QString &plugin : plugins )
{
if ( mPythonUtils->isPluginEnabled( plugin ) && mPythonUtils->pluginHasProcessingProvider( plugin ) )
if ( plugin == QLatin1String( "processing" ) || ( mPythonUtils->isPluginEnabled( plugin ) && mPythonUtils->pluginHasProcessingProvider( plugin ) ) )
{
if ( !mPythonUtils->loadPlugin( plugin ) )
{
Expand Down

0 comments on commit bc0df6d

Please sign in to comment.