diff options
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r-- | mail/em-folder-tree.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index 81803b53a3..e5ef9d4f0c 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -2736,11 +2736,16 @@ em_folder_tree_set_selected_list (EMFolderTree *folder_tree, priv->select_uris = g_slist_append (priv->select_uris, u); } } else { + CamelService *service; + CamelProvider *provider; const gchar *path; gchar *expand_key, *end; EAccount *account; - if (((CamelService *)u->store)->provider->url_flags & CAMEL_URL_FRAGMENT_IS_PATH) + service = CAMEL_SERVICE (u->store); + provider = camel_service_get_provider (service); + + if (provider->url_flags & CAMEL_URL_FRAGMENT_IS_PATH) path = url->fragment; else path = url->path && url->path[0]=='/' ? url->path+1:url->path; |