Fix adding a selection to a collection with no window open
authorLaurent Monin <geeqie@norz.org>
Wed, 23 Apr 2008 09:56:21 +0000 (09:56 +0000)
committerLaurent Monin <geeqie@norz.org>
Wed, 23 Apr 2008 09:56:21 +0000 (09:56 +0000)
using the sort manager. Only one file was added, now all
files in the selection are added (but duplicates).
A pointer was not reset correctly.

src/collect-io.c

index 62ac2b1..9fb9d12 100644 (file)
@@ -189,6 +189,7 @@ static gint collection_load_private(CollectionData *cd, const gchar *path, Colle
                        collection_add_check(cd, file_data_new_simple(buf), FALSE, TRUE);
                        changed = TRUE;
                        g_free(buf);
+                       buf = NULL;
                        }
                }