diff options
author | Not Zed <NotZed@Ximian.com> | 2004-01-27 12:17:27 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-01-27 12:17:27 +0800 |
commit | d80cafe84dc7f053c21bb1ddd74a6b45ad3c301c (patch) | |
tree | f49e789c10a76c674fdbb24ee53c37c7c37d9d75 /mail/em-folder-tree-model.c | |
parent | 895c471b009d1d592b3a741cbe9b7128fd19b293 (diff) | |
download | gsoc2013-evolution-d80cafe84dc7f053c21bb1ddd74a6b45ad3c301c.tar.gz gsoc2013-evolution-d80cafe84dc7f053c21bb1ddd74a6b45ad3c301c.tar.zst gsoc2013-evolution-d80cafe84dc7f053c21bb1ddd74a6b45ad3c301c.zip |
fix the parent-finding logic.
2004-01-27 Not Zed <NotZed@Ximian.com>
* em-folder-tree-model.c (folder_renamed): fix the parent-finding
logic.
2004-01-23 Not Zed <NotZed@Ximian.com>
* mail-component.c (mail_component_init): add the offline handler
interface to the component.
(store_go_online, go_online): removed, handled by the offline
handler.
* mail-offline-handler.c (store_go_online): add the store to the
tree model when we go online.
svn path=/trunk/; revision=24459
Diffstat (limited to 'mail/em-folder-tree-model.c')
-rw-r--r-- | mail/em-folder-tree-model.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c index 5811cb09ef..cd0b1de9e0 100644 --- a/mail/em-folder-tree-model.c +++ b/mail/em-folder-tree-model.c @@ -604,10 +604,10 @@ folder_renamed (CamelStore *store, CamelRenameInfo *info, EMFolderTreeModel *mod em_folder_tree_model_remove_folders (model, si, &iter); parent = g_strdup (info->new->path); - if ((p = strrchr (parent + 1, '/'))) - *p = '\0'; - - if (!strcmp (parent, "/")) { + p = strrchr(parent, '/'); + g_assert(p); + *p = 0; + if (parent == p) { /* renamed to a toplevel folder on the store */ path = gtk_tree_row_reference_get_path (si->row); } else { |