From 9d8d0e8a3eda20170ed94bd8ec700b87b98b64da Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Tue, 7 Aug 2007 10:53:12 +0000 Subject: ** Fix for bug #464312 svn path=/trunk/; revision=33965 --- mail/em-folder-tree.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'mail/em-folder-tree.c') diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index 1e1a9f3f22..1fe6f50558 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -2300,9 +2300,13 @@ emft_tree_selection_changed (GtkTreeSelection *selection, EMFolderTree *emft) GtkTreeIter iter; guint32 flags; - if (!emft_selection_get_selected (selection, &model, &iter)) + if (!emft_selection_get_selected (selection, &model, &iter)) { + em_folder_tree_model_set_selected (emft->priv->model, NULL); + g_signal_emit (emft, signals[FOLDER_SELECTED], 0, NULL, NULL, 0); + emft_queue_save_state (emft); return; - + } + gtk_tree_model_get (model, &iter, COL_STRING_FULL_NAME, &full_name, COL_STRING_URI, &uri, COL_UINT_FLAGS, &flags, -1); @@ -2414,7 +2418,7 @@ em_folder_tree_select_prev_path (EMFolderTree *emft, gboolean skip_read_folders) { GtkTreeSelection *selection; GtkTreeModel *model; - GtkTreeIter iter, parent, child; + GtkTreeIter iter, child; GtkTreePath *path, *current_path = NULL; unsigned int unread = 0; struct _EMFolderTreePrivate *priv = emft->priv; -- cgit