Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > ef1cc458f6858ff0600b68c1d7292bd2 > files > 2

padevchooser-0.9.4-0.35.1mdv2008.0.src.rpm

Index: src/padevchooser.c
===================================================================
--- src/padevchooser.c	(revision 35)
+++ src/padevchooser.c	(working copy)
@@ -223,6 +223,11 @@
     const gchar *title;
     gboolean b;
 
+    // Don't bother adding another entry if we have one already
+    c = g_hash_table_lookup(h, i->name);
+    if (c)
+      return NULL;
+
     m = g_new(struct menu_item_info, 1);
 
     m->name = g_strdup(i->name);