File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -7368,8 +7368,10 @@ QgsLayoutDesignerDialog *QgisApp::createNewPrintLayout( const QString &t )
7368
7368
QgsPrintLayout *layout = new QgsPrintLayout( QgsProject::instance() );
7369
7369
layout->setName( title );
7370
7370
layout->initializeDefaults();
7371
- QgsProject::instance()->layoutManager()->addLayout( layout );
7372
- return openLayoutDesignerDialog( layout );
7371
+ if ( QgsProject::instance()->layoutManager()->addLayout( layout ) )
7372
+ return openLayoutDesignerDialog( layout );
7373
+ else
7374
+ return nullptr;
7373
7375
}
7374
7376
7375
7377
QgsLayoutDesignerDialog *QgisApp::createNewReport( QString title )
Original file line number Diff line number Diff line change @@ -961,8 +961,8 @@ bool QgsProcessingModelAlgorithm::activateChildAlgorithm( const QString &id )
961
961
962
962
void QgsProcessingModelAlgorithm::addModelParameter ( QgsProcessingParameterDefinition *definition, const QgsProcessingModelParameter &component )
963
963
{
964
- addParameter ( definition );
965
- mParameterComponents .insert ( definition->name (), component );
964
+ if ( addParameter ( definition ) )
965
+ mParameterComponents .insert ( definition->name (), component );
966
966
}
967
967
968
968
void QgsProcessingModelAlgorithm::updateModelParameter ( QgsProcessingParameterDefinition *definition )
You can’t perform that action at this time.
0 commit comments