From 9f83d6d31872f5bce584c52738385bc2ae568a05 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 7 Feb 2002 11:15:10 +0000 Subject: Create the local directory when loading instead of when saving. This way 2002-02-07 Christopher James Lahey * gal-view-collection.c (gal_view_collection_load): Create the local directory when loading instead of when saving. This way instance data will have somewhere to be saved. svn path=/trunk/; revision=15591 --- widgets/menus/gal-view-collection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'widgets') diff --git a/widgets/menus/gal-view-collection.c b/widgets/menus/gal-view-collection.c index 9f56de9715..290c28f688 100644 --- a/widgets/menus/gal-view-collection.c +++ b/widgets/menus/gal-view-collection.c @@ -472,6 +472,8 @@ gal_view_collection_load (GalViewCollection *collection) g_return_if_fail (collection->system_dir != NULL); g_return_if_fail (!collection->loaded); + e_create_directory(collection->local_dir); + load_single_dir(collection, collection->local_dir, TRUE); load_single_dir(collection, collection->system_dir, FALSE); gal_view_collection_changed(collection); @@ -499,8 +501,6 @@ gal_view_collection_save (GalViewCollection *collection) g_return_if_fail (GAL_IS_VIEW_COLLECTION (collection)); g_return_if_fail (collection->local_dir != NULL); - e_create_directory(collection->local_dir); - doc = xmlNewDoc("1.0"); root = xmlNewNode(NULL, "GalViewCollection"); xmlDocSetRootElement(doc, root); -- cgit v1.2.3