mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-17 00:09:36 -04:00
Don't show help for algorithms which can't be run in qgis_process
Fixes #54914
This commit is contained in:
parent
872901a8b3
commit
94b62accf2
@ -781,6 +781,12 @@ int QgsProcessingExec::showAlgorithmHelp( const QString &inputId, bool useJson )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( alg->flags() & QgsProcessingAlgorithm::FlagNotAvailableInStandaloneTool )
|
||||||
|
{
|
||||||
|
std::cerr << QStringLiteral( "The \"%1\" algorithm is not available for use outside of the QGIS desktop application\n" ).arg( id ).toLocal8Bit().constData();
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
QVariantMap json;
|
QVariantMap json;
|
||||||
if ( !useJson )
|
if ( !useJson )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user