diff options
author | Milan Crha <mcrha@redhat.com> | 2011-08-12 15:43:22 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-08-12 15:43:22 +0800 |
commit | 0e264ffcfba09c882d39ccd386475fcfcfd531e3 (patch) | |
tree | f419d63c05d4b7d6e738888fe0293f44db0816d7 | |
parent | 72d408c8a31479c887822c9a2b7f1a25d0007f4f (diff) | |
download | gsoc2013-evolution-0e264ffcfba09c882d39ccd386475fcfcfd531e3.tar.gz gsoc2013-evolution-0e264ffcfba09c882d39ccd386475fcfcfd531e3.tar.zst gsoc2013-evolution-0e264ffcfba09c882d39ccd386475fcfcfd531e3.zip |
Bug #655957 - Current account / all accounts search changes column
-rw-r--r-- | 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 47b10943db..263a2838db 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)); } |