diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/mail/e-mail-shell-view-private.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/mail/e-mail-shell-view-private.c b/modules/mail/e-mail-shell-view-private.c index 1d25ac8e07..e6c5417b9a 100644 --- a/modules/mail/e-mail-shell-view-private.c +++ b/modules/mail/e-mail-shell-view-private.c @@ -207,11 +207,6 @@ static void mail_shell_view_reader_changed_cb (EMailShellView *mail_shell_view, EMailReader *reader) { - EMailShellContent *mail_shell_content; - - mail_shell_content = mail_shell_view->priv->mail_shell_content; - - e_mail_shell_content_update_view_instance (mail_shell_content); e_shell_view_update_actions (E_SHELL_VIEW (mail_shell_view)); e_mail_shell_view_update_sidebar (mail_shell_view); } @@ -434,6 +429,11 @@ e_mail_shell_view_private_constructed (EMailShellView *mail_shell_view) G_CALLBACK (mail_shell_view_reader_changed_cb), mail_shell_view); + g_signal_connect_swapped ( + reader, "folder-loaded", + G_CALLBACK (e_mail_shell_content_update_view_instance), + shell_content); + /* Use the same callback as "changed". */ g_signal_connect_swapped ( reader, "folder-loaded", |