diff options
author | Milan Crha <mcrha@redhat.com> | 2007-11-22 15:37:14 +0800 |
---|---|---|
committer | Milan Crha <mcrha@src.gnome.org> | 2007-11-22 15:37:14 +0800 |
commit | 1364889a9841256a07897eccb076377ab1419a59 (patch) | |
tree | fc3a5443aa9ce6c1aca4813f4a42fef2a3dab82d /mail | |
parent | c362915ea18453a0c7e3f0bfd954efd89ab2face (diff) | |
download | gsoc2013-evolution-1364889a9841256a07897eccb076377ab1419a59.tar gsoc2013-evolution-1364889a9841256a07897eccb076377ab1419a59.tar.gz gsoc2013-evolution-1364889a9841256a07897eccb076377ab1419a59.tar.bz2 gsoc2013-evolution-1364889a9841256a07897eccb076377ab1419a59.tar.lz gsoc2013-evolution-1364889a9841256a07897eccb076377ab1419a59.tar.xz gsoc2013-evolution-1364889a9841256a07897eccb076377ab1419a59.tar.zst gsoc2013-evolution-1364889a9841256a07897eccb076377ab1419a59.zip |
** Fix for bug #498551
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.
svn path=/trunk/; revision=34563
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; |