[evolution] Bug #655957 - Current account / all accounts search changes column



commit 0e264ffcfba09c882d39ccd386475fcfcfd531e3
Author: Milan Crha <mcrha redhat com>
Date:   Fri Aug 12 09:43:22 2011 +0200

    Bug #655957 - Current account / all accounts search changes column

 modules/mail/e-mail-shell-view.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/modules/mail/e-mail-shell-view.c b/modules/mail/e-mail-shell-view.c
index 47b1094..263a283 100644
--- a/modules/mail/e-mail-shell-view.c
+++ b/modules/mail/e-mail-shell-view.c
@@ -126,6 +126,7 @@ mail_shell_view_show_search_results_folder (EMailShellView *mail_shell_view,
 	GtkWidget *message_list;
 	EMailView *mail_view;
 	EMailReader *reader;
+	GalViewInstance *view_instance;
 
 	mail_shell_content = mail_shell_view->priv->mail_shell_content;
 	mail_view = e_mail_shell_content_get_mail_view (mail_shell_content);
@@ -136,7 +137,10 @@ mail_shell_view_show_search_results_folder (EMailShellView *mail_shell_view,
 	message_list_freeze (MESSAGE_LIST (message_list));
 
 	e_mail_reader_set_folder (reader, folder);
-	e_tree_set_state (E_TREE (message_list), SEARCH_RESULTS_STATE);
+	view_instance = e_mail_view_get_view_instance (mail_view);
+
+	if (!view_instance || !gal_view_instance_exists (view_instance))
+		e_tree_set_state (E_TREE (message_list), SEARCH_RESULTS_STATE);
 
 	message_list_thaw (MESSAGE_LIST (message_list));
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]