summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2021-04-22 13:27:43 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2021-04-22 13:31:46 +1000
commitbab269813e8d5254abd9f07b613d3646230be8c3 (patch)
treea4460d7bbeba2b03f1480ae19b257ba5252424b4
parentaa7e344051170ea47585d3d72b1a36e3991121f9 (diff)
downloadgnome-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)
-rw-r--r--libgnome-desktop/gnome-xkb-info.c2
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);