diff options
Diffstat (limited to 'mail/em-folder-tree-model.c')
-rw-r--r-- | mail/em-folder-tree-model.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c index 25d3d993e4..e3d3ba10f2 100644 --- a/mail/em-folder-tree-model.c +++ b/mail/em-folder-tree-model.c @@ -1005,6 +1005,7 @@ em_folder_tree_model_add_store (EMFolderTreeModel *model, GtkTreePath *path; CamelURL *service_url; EAccount *account; + const gchar *uid; gchar *uri; g_return_if_fail (EM_IS_FOLDER_TREE_MODEL (model)); @@ -1020,7 +1021,8 @@ em_folder_tree_model_add_store (EMFolderTreeModel *model, service_url = camel_service_get_camel_url (CAMEL_SERVICE (store)); uri = camel_url_to_string (service_url, CAMEL_URL_HIDE_ALL); - account = e_get_account_by_source_url (uri); + uid = camel_service_get_uid (CAMEL_SERVICE (store)); + account = e_get_account_by_uid (uid); /* Add the store to the tree. */ gtk_tree_store_append (tree_store, &iter, NULL); |