Bug report #19835

QgsProcessingParameterMultipleLayers widget does not keep layer order

Added by Olivier Dalang about 2 years ago. Updated about 2 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Processing/GUI
Affected QGIS version:3.3(master) Regression?:No
Operating System:Windows 10 Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:27659

Description

Hi !

The QgsProcessingParameterMultipleLayers does not keep layer ordering when it is reopened.

This is very annoying for algorithms that are sensitive to the layer ordering and is very error prone as the difference is quite subtle.

Steps to reproduce

- Open "merge vector" algorithm (or any other having a multiple layers input)
- Add at least two layers as the multiple layer input
- Change the order of the layer
- Validate (at this point, the reorderd list of layers is set as parameter)
- Reopen the multiple layer input widget
- The layer order is reset to initial state

History

#1 Updated by Olivier Dalang about 2 years ago

(looks similar to #19836 but is not related)

Also available in: Atom PDF