--- orig/libleaftag-gtk/libleaftag-gtk/tag-dialog.c 2006-03-15 14:36:51.000000000 +0200 +++ libleaftag-gtk/libleaftag-gtk/tag-dialog.c 2006-03-15 14:33:17.000000000 +0200 @@ -269,6 +269,7 @@ gchar **words; gint i; GList *li, *sources, *tags; + LtSource *source; /* Unset old tags */ sources = lt_source_lookup_many (tag_dialog->priv->uris); @@ -280,6 +281,14 @@ } /* Set new tags */ + sources = NULL; + for (li = tag_dialog->priv->uris; li; li = g_list_next (li)) { + source = lt_source_lookup ((gchar *) li->data); + if (source == NULL) + source = lt_create_source ((gchar *) li->data); + sources = g_list_prepend (sources, source); + } + text = gtk_entry_get_text (GTK_ENTRY (tag_dialog->priv->tag_entry)); words = g_strsplit (text, ",", 0);