aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-shell-content.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2008-12-16 13:05:11 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-12-16 13:05:11 +0800
commitf252ffb547b5542bcf03557d39f8e5c32f325c0a (patch)
treeba73dbbfa94143b7077d32cc3b2c14b736ed1e5a /mail/e-mail-shell-content.c
parent22638789fafe044f3c25a5ddbbc371e5da727293 (diff)
downloadgsoc2013-evolution-f252ffb547b5542bcf03557d39f8e5c32f325c0a.tar
gsoc2013-evolution-f252ffb547b5542bcf03557d39f8e5c32f325c0a.tar.gz
gsoc2013-evolution-f252ffb547b5542bcf03557d39f8e5c32f325c0a.tar.bz2
gsoc2013-evolution-f252ffb547b5542bcf03557d39f8e5c32f325c0a.tar.lz
gsoc2013-evolution-f252ffb547b5542bcf03557d39f8e5c32f325c0a.tar.xz
gsoc2013-evolution-f252ffb547b5542bcf03557d39f8e5c32f325c0a.tar.zst
gsoc2013-evolution-f252ffb547b5542bcf03557d39f8e5c32f325c0a.zip
- Mail: Update the sidebar on folder selection.
svn path=/branches/kill-bonobo/; revision=36901
Diffstat (limited to 'mail/e-mail-shell-content.c')
-rw-r--r--mail/e-mail-shell-content.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/e-mail-shell-content.c b/mail/e-mail-shell-content.c
index 6d1ffc0a08..cdd49aa718 100644
--- a/mail/e-mail-shell-content.c
+++ b/mail/e-mail-shell-content.c
@@ -450,7 +450,12 @@ e_mail_shell_content_update_view_instance (EMailShellContent *mail_shell_content
view_collection = shell_view_class->view_collection;
folder_view = e_mail_shell_content_get_folder_view (mail_shell_content);
- g_return_if_fail (folder_view->folder != NULL);
+
+ /* If no folder is selected, return silently. */
+ if (folder_view->folder == NULL)
+ return;
+
+ /* If we have a folder, we should also have a URI. */
g_return_if_fail (folder_view->folder_uri != NULL);
if (mail_shell_content->priv->view_instance != NULL) {