diff options
author | Not Zed <NotZed@Ximian.com> | 2004-04-05 13:06:45 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-04-05 13:06:45 +0800 |
commit | 6a1a952d1fb90bfd1fdc75c5c544e434b4908265 (patch) | |
tree | 8dbb9bc8c3b049392bcf9f529cfead4196e9ac3c /camel/camel-store.c | |
parent | 1f6875b2710499f147b62a08ffb9429aa67995da (diff) | |
download | gsoc2013-evolution-6a1a952d1fb90bfd1fdc75c5c544e434b4908265.tar.gz gsoc2013-evolution-6a1a952d1fb90bfd1fdc75c5c544e434b4908265.tar.zst gsoc2013-evolution-6a1a952d1fb90bfd1fdc75c5c544e434b4908265.zip |
dont add folders to folders_out here, only in get_folders_add_folders.
2004-04-05 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-store.c (get_folders): dont add
folders to folders_out here, only in get_folders_add_folders.
* camel-store.c (camel_folder_info_build): simplify 'list append'
since we have next pointer at the head of the struct.
* providers/imap/camel-imap-store.c (create_folder): fixed
"containes" spelling count.
(get_folder_online): "
(get_folders_add_folders): duh, add the folder info to the
folders_out array.
svn path=/trunk/; revision=25310
Diffstat (limited to 'camel/camel-store.c')
-rw-r--r-- | camel/camel-store.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/camel/camel-store.c b/camel/camel-store.c index e7d1f41651..9f4a0f9c7f 100644 --- a/camel/camel-store.c +++ b/camel/camel-store.c @@ -1021,14 +1021,10 @@ camel_folder_info_build (GPtrArray *folders, const char *namespace, g_hash_table_insert (hash, pname, pfi); g_ptr_array_add (folders, pfi); } - tail = pfi->child; - if (tail == NULL) { - pfi->child = fi; - } else { - while (tail->next) - tail = tail->next; - tail->next = fi; - } + tail = (CamelFolderInfo *)&pfi->child; + while (tail->next) + tail = tail->next; + tail->next = fi; fi->parent = pfi; } else if (!top) top = fi; |