aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-08-12 15:43:22 +0800
committerMilan Crha <mcrha@redhat.com>2011-08-12 15:43:22 +0800
commit0e264ffcfba09c882d39ccd386475fcfcfd531e3 (patch)
treef419d63c05d4b7d6e738888fe0293f44db0816d7 /modules
parent72d408c8a31479c887822c9a2b7f1a25d0007f4f (diff)
downloadgsoc2013-evolution-0e264ffcfba09c882d39ccd386475fcfcfd531e3.tar
gsoc2013-evolution-0e264ffcfba09c882d39ccd386475fcfcfd531e3.tar.gz
gsoc2013-evolution-0e264ffcfba09c882d39ccd386475fcfcfd531e3.tar.bz2
gsoc2013-evolution-0e264ffcfba09c882d39ccd386475fcfcfd531e3.tar.lz
gsoc2013-evolution-0e264ffcfba09c882d39ccd386475fcfcfd531e3.tar.xz
gsoc2013-evolution-0e264ffcfba09c882d39ccd386475fcfcfd531e3.tar.zst
gsoc2013-evolution-0e264ffcfba09c882d39ccd386475fcfcfd531e3.zip
Bug #655957 - Current account / all accounts search changes column
Diffstat (limited to 'modules')
-rw-r--r--modules/mail/e-mail-shell-view.c6
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));
}