Skip to content
Permalink
Browse files

Add log output in case of loading models with missing parameters

  • Loading branch information
m-kuhn authored and nyalldawson committed Mar 6, 2018
1 parent 6bad21f commit cb84b832f988421b28d40afb0bf42521e94e3473
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/core/processing/models/qgsprocessingmodelalgorithm.cpp
@@ -859,6 +859,14 @@ bool QgsProcessingModelAlgorithm::loadVariant( const QVariant &model )
// with no way for users to repair them
if ( param )
addParameter( param.release() );
else
{
QVariantMap map = paramDefIt.value().toMap();
QString type = map.value( QStringLiteral( "parameter_type" ) ).toString();
QString name = map.value( QStringLiteral( "name" ) ).toString();

QgsMessageLog::logMessage( QCoreApplication::translate( "Processing", "Could not load parameter %1 of type %2." ).arg( name, type ), QCoreApplication::translate( "Processing", "Processing" ) );
}
}

updateDestinationParameters();

0 comments on commit cb84b83

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