mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
in model child algorithms Prior to this change if you edited an algorithm in a model and tried to enter a preset string for certain parameter types, this string would get silently discarded on closing the dialog. E.g. with a dissolve algorithm it was not possible to have a fixed field name within the model to dissolve by. This was caused by WidgetWrapper.comboValue returning the customData for these manually entered values in the parameters combo box, yet manually entered values never have custom data. To work around this we only return the custom data if its set for the selected item - otherwise we return the text unchanged. In order to handle the "[not set]" options, a new static custom data value of WidgetWrapper.NOT_SET_OPTION is added to that comboValue can detect this and return the appropriate None value.