kcms/keyboard: Fix assigning variants to wrong layouts for "extra" rules
When processing the xkb_rules files, we cannot assume that the layouts and their corresponding variants will always come in order. Instead find the layout by name before assigning the variant.
This fixes the layout/variant matches defined in *.extras.xml
, which
are merged later, and provide new variants to layouts that were already
BEFORE | AFTER |
---|---|
BUG: 489975
FIXED-IN: 6.2
Edit: I've actually checked it out and the cherry-pick to 6.1.5 is not clean, so at this point in the calendar I'd leave it just for 6.2
Edited by Ismael Asensio