diff options
author | Matthew Barnes <mbarnes@src.gnome.org> | 2009-01-18 07:46:45 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2009-01-18 07:46:45 +0800 |
commit | 8e546420df08f5fe243aa4227be44915fd79b86b (patch) | |
tree | 9475c4be3cf2eedceaa0122f5071a6f2914f3dd4 /mail/e-mail-shell-view.c | |
parent | c22126d54f0cf0637e3d5ddd5d78b3ff5d111582 (diff) | |
download | gsoc2013-evolution-8e546420df08f5fe243aa4227be44915fd79b86b.tar gsoc2013-evolution-8e546420df08f5fe243aa4227be44915fd79b86b.tar.gz gsoc2013-evolution-8e546420df08f5fe243aa4227be44915fd79b86b.tar.bz2 gsoc2013-evolution-8e546420df08f5fe243aa4227be44915fd79b86b.tar.lz gsoc2013-evolution-8e546420df08f5fe243aa4227be44915fd79b86b.tar.xz gsoc2013-evolution-8e546420df08f5fe243aa4227be44915fd79b86b.tar.zst gsoc2013-evolution-8e546420df08f5fe243aa4227be44915fd79b86b.zip |
Fix a runtime warning.
svn path=/branches/kill-bonobo/; revision=37094
Diffstat (limited to 'mail/e-mail-shell-view.c')
-rw-r--r-- | mail/e-mail-shell-view.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mail/e-mail-shell-view.c b/mail/e-mail-shell-view.c index 74fa2e2291..f93e72c043 100644 --- a/mail/e-mail-shell-view.c +++ b/mail/e-mail-shell-view.c @@ -91,9 +91,8 @@ mail_shell_view_update_actions (EShellView *shell_view) EShellSidebar *shell_sidebar; EShellWindow *shell_window; EMFolderTree *folder_tree; - EAccount *account; + EAccount *account = NULL; GtkAction *action; - CamelURL *camel_url; const gchar *label; gchar *uri; gboolean sensitive; @@ -133,15 +132,16 @@ mail_shell_view_update_actions (EShellView *shell_view) (state & E_MAIL_SHELL_SIDEBAR_FOLDER_IS_TRASH); uri = em_folder_tree_get_selected_uri (folder_tree); - account = mail_config_get_account_by_source_url (uri); - camel_url = camel_url_new (uri, NULL); + if (uri != NULL) { + account = mail_config_get_account_by_source_url (uri); - /* FIXME This belongs in a GroupWise plugin. */ - account_is_groupwise = - (g_strrstr (uri, "groupwise://") != NULL) && - account != NULL && account->parent_uid != NULL; + /* FIXME This belongs in a GroupWise plugin. */ + account_is_groupwise = + (g_strrstr (uri, "groupwise://") != NULL) && + account != NULL && account->parent_uid != NULL; - g_free (uri); + g_free (uri); + } action = ACTION (MAIL_ACCOUNT_DISABLE); visible = (account != NULL) && folder_is_store; |