File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
python/plugins/processing/modeler Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -229,8 +229,12 @@ def updateAlgorithm(self, alg):
229
229
def removeElement (self ):
230
230
if isinstance (self .element , QgsProcessingModelAlgorithm .ModelParameter ):
231
231
if self .model .childAlgorithmsDependOnParameter (self .element .parameterName ()):
232
- QMessageBox .warning (None , 'Could not remove element' ,
233
- 'Other elements depend on the selected one.\n '
232
+ QMessageBox .warning (None , 'Could not remove input' ,
233
+ 'Algorithms depend on the selected input.\n '
234
+ 'Remove them before trying to remove it.' )
235
+ elif self .model .otherParametersDependOnParameter (self .element .parameterName ()):
236
+ QMessageBox .warning (None , 'Could not remove input' ,
237
+ 'Other inputs depend on the selected input.\n '
234
238
'Remove them before trying to remove it.' )
235
239
else :
236
240
self .model .removeModelParameter (self .element .parameterName ())
You can’t perform that action at this time.
0 commit comments