Skip to content
Permalink
Browse files

ALWAYS load processing plugin in qgis_process tool

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 bc0df6d25e929a575d0821208f7d187737d80709
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/process/qgsprocess.cpp
@@ -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 ) )
{

0 comments on commit bc0df6d

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