diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2021-04-22 13:27:43 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2021-04-22 13:31:46 +1000 |
commit | bab269813e8d5254abd9f07b613d3646230be8c3 (patch) | |
tree | a4460d7bbeba2b03f1480ae19b257ba5252424b4 /libgnome-desktop | |
parent | aa7e344051170ea47585d3d72b1a36e3991121f9 (diff) | |
download | gnome-desktop-bab269813e8d5254abd9f07b613d3646230be8c3.tar.gz |
xkbinfo: continue after skipping a duplicate layout, don't return
Copy-paste error introduced in aa7e3440511. We're inside the loop listing
through all layouts here so returning early means we skip any layout after the
duplicate one.
Before:
$ test-xkb-info | wc -l
3913
Now:
$ test-xkb-info | wc -l
3923
Fixes aa7e344051170ea47585d3d72b1a36e3991121f9
Found by Jason Francis (@jf)
Diffstat (limited to 'libgnome-desktop')
-rw-r--r-- | libgnome-desktop/gnome-xkb-info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgnome-desktop/gnome-xkb-info.c b/libgnome-desktop/gnome-xkb-info.c index f2a3214b..2bb3036c 100644 --- a/libgnome-desktop/gnome-xkb-info.c +++ b/libgnome-desktop/gnome-xkb-info.c @@ -271,7 +271,7 @@ add_layouts (GnomeXkbInfo *self, if (g_hash_table_contains (priv->layouts_table, l->id)) { g_clear_pointer (&l, free_layout); - return; + continue; } g_hash_table_replace (priv->layouts_table, l->id, l); |