diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 7 | ||||
-rw-r--r-- | mail/em-folder-tree.c | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 6f53b7da30..e927ba9e03 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,12 @@ 2007-11-22 Milan Crha <mcrha@redhat.com> + ** Fix for bug #498551 + + * em-folder-tree.c: (emft_get_folder_info__got): + Remove placeholder node even for store if no children found. + +2007-11-22 Milan Crha <mcrha@redhat.com> + ** Fix for bug #256899 by Chaya * mail-config.glade: diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index 6efb4f45e2..8104ac5f2e 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -1782,14 +1782,14 @@ emft_get_folder_info__got (struct _mail_msg *mm) /* no children afterall... remove the "Loading..." placeholder node */ emft_update_model_expanded_state (priv, &root, FALSE); + gtk_tree_store_remove (model, &iter); + if (is_store) { path = gtk_tree_model_get_path ((GtkTreeModel *) model, &root); gtk_tree_view_collapse_row (priv->treeview, path); emft_queue_save_state (m->emft); gtk_tree_path_free (path); return; - } else { - gtk_tree_store_remove (model, &iter); } } else { int fully_loaded = (m->flags & CAMEL_STORE_FOLDER_INFO_RECURSIVE) ? TRUE : FALSE; |