qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.65k stars 3.01k forks source link

[ValueRelationWidget] Restore correctly value on widget value changed #59536

Open troopa81 opened 5 days ago

troopa81 commented 5 days ago

When selecting several features on multiedit mode, widgets are intialized in no known order (see QgsAttributeForm::setMultiEditFeatureIds() ), and so we could initialize a value relation widget before an other widget it is related to (through its expression). That would cause the current selected value to be lost.

So we need to restore properly this value on widget value changed.

Funded by Coforet

github-actions[bot] commented 5 days ago

🪟 Windows builds

Download Windows builds of this PR for testing. Debug symbols for this build are available here. (Built from commit c3d0f5866248635ea3685a7e2768a5667315a079)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing. (Built from commit c3d0f5866248635ea3685a7e2768a5667315a079)