aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index da11702d2c..381b48c47c 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -1225,13 +1225,18 @@ folder_browser_toggle_threads (BonoboUIComponent *component,
gpointer user_data)
{
FolderBrowser *fb = user_data;
-
+ int prev_state;
+
if (type != Bonobo_UIComponent_STATE_CHANGED
|| fb->message_list == NULL)
return;
mail_config_set_thread_list (fb->uri, atoi (state));
message_list_set_threaded (fb->message_list, atoi (state));
+
+ prev_state = fb->selection_state;
+ fb->selection_state = FB_SELSTATE_UNDEFINED;
+ folder_browser_ui_set_selection_state (fb, prev_state);
}
void