Fix an oversight in ensuring search item uniqueness
We were using a guaranteed-to-be-NULL string instead of the one we were actually meaning to use.
This commit is contained in:
@@ -258,7 +258,7 @@ gtk_shortcuts_window_add_search_item (GtkShortcutsWindow *self,
|
||||
"title", &title,
|
||||
NULL);
|
||||
|
||||
hash_key = g_strdup_printf ("%s-%s", title, hash_key);
|
||||
hash_key = g_strdup_printf ("%s-%s", title, accelerator);
|
||||
if (g_hash_table_contains (priv->search_items_hash, hash_key))
|
||||
{
|
||||
g_free (hash_key);
|
||||
@@ -293,7 +293,7 @@ gtk_shortcuts_window_add_search_item (GtkShortcutsWindow *self,
|
||||
"title", &title,
|
||||
NULL);
|
||||
|
||||
hash_key = g_strdup_printf ("%s-%s", title, hash_key);
|
||||
hash_key = g_strdup_printf ("%s-%s", title, subtitle);
|
||||
if (g_hash_table_contains (priv->search_items_hash, hash_key))
|
||||
{
|
||||
g_free (subtitle);
|
||||
|
||||
Reference in New Issue
Block a user