diff options
author | Milan Crha <mcrha@redhat.com> | 2012-05-31 17:50:44 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-05-31 17:50:44 +0800 |
commit | 93178424f2a5504adcec14f89d868f00bca60f38 (patch) | |
tree | 6ed68831bc63f961dc3a540b237bbfe67807d117 /mail | |
parent | 71924fc48776c642fe8520febc384250cf55973c (diff) | |
download | gsoc2013-evolution-93178424f2a5504adcec14f89d868f00bca60f38.tar gsoc2013-evolution-93178424f2a5504adcec14f89d868f00bca60f38.tar.gz gsoc2013-evolution-93178424f2a5504adcec14f89d868f00bca60f38.tar.bz2 gsoc2013-evolution-93178424f2a5504adcec14f89d868f00bca60f38.tar.lz gsoc2013-evolution-93178424f2a5504adcec14f89d868f00bca60f38.tar.xz gsoc2013-evolution-93178424f2a5504adcec14f89d868f00bca60f38.tar.zst gsoc2013-evolution-93178424f2a5504adcec14f89d868f00bca60f38.zip |
Bug #673946 - Cannot delete search folders
Diffstat (limited to 'mail')
-rw-r--r-- | mail/e-mail-reader-utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/e-mail-reader-utils.c b/mail/e-mail-reader-utils.c index 0a8e358938..6d3f6aafc5 100644 --- a/mail/e-mail-reader-utils.c +++ b/mail/e-mail-reader-utils.c @@ -198,13 +198,13 @@ e_mail_reader_delete_folder (EMailReader *reader, EShell *shell; EAlertSink *alert_sink; CamelStore *parent_store; + CamelProvider *provider; MailFolderCache *folder_cache; GtkWindow *parent = e_shell_get_active_window (NULL); GtkWidget *dialog; gboolean store_is_local; const gchar *display_name; const gchar *full_name; - const gchar *uid; CamelFolderInfoFlags flags = 0; gboolean have_flags; @@ -214,9 +214,9 @@ e_mail_reader_delete_folder (EMailReader *reader, full_name = camel_folder_get_full_name (folder); display_name = camel_folder_get_display_name (folder); parent_store = camel_folder_get_parent_store (folder); + provider = camel_service_get_provider (CAMEL_SERVICE (parent_store)); - uid = camel_service_get_uid (CAMEL_SERVICE (parent_store)); - store_is_local = (g_strcmp0 (uid, E_MAIL_SESSION_LOCAL_UID) == 0); + store_is_local = (provider->flags & CAMEL_PROVIDER_IS_LOCAL) != 0; backend = e_mail_reader_get_backend (reader); session = e_mail_backend_get_session (backend); |