diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-09-24 06:22:10 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-09-24 06:22:10 +0800 |
commit | 0c1afa3941ef2663793d0b5e1fd9221423374d19 (patch) | |
tree | abe7c7f2c0417033c766f6ba64c69fe291a509a7 | |
parent | dacc7b6f6654af736c40a24f42a855cebfaa5396 (diff) | |
download | gsoc2013-evolution-0c1afa3941ef2663793d0b5e1fd9221423374d19.tar.gz gsoc2013-evolution-0c1afa3941ef2663793d0b5e1fd9221423374d19.tar.zst gsoc2013-evolution-0c1afa3941ef2663793d0b5e1fd9221423374d19.zip |
Bug 594543 - Crash on folder/message change
Based on a patch by Milan Crha.
-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", |