diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-03-01 01:35:48 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-03-01 01:46:19 +0800 |
commit | 6bb4295b9210b1d5b6c36214c06fecdb0b17a075 (patch) | |
tree | e67086cbf493ba1b06fee0db501a061281537c03 | |
parent | 105e26f2174f382470f3217c9ba64fc3863158d2 (diff) | |
download | gsoc2013-evolution-6bb4295b9210b1d5b6c36214c06fecdb0b17a075.tar gsoc2013-evolution-6bb4295b9210b1d5b6c36214c06fecdb0b17a075.tar.gz gsoc2013-evolution-6bb4295b9210b1d5b6c36214c06fecdb0b17a075.tar.bz2 gsoc2013-evolution-6bb4295b9210b1d5b6c36214c06fecdb0b17a075.tar.lz gsoc2013-evolution-6bb4295b9210b1d5b6c36214c06fecdb0b17a075.tar.xz gsoc2013-evolution-6bb4295b9210b1d5b6c36214c06fecdb0b17a075.tar.zst gsoc2013-evolution-6bb4295b9210b1d5b6c36214c06fecdb0b17a075.zip |
e_mail_config_service_backend_get_settings: Another corner case.
ESourceCollection's default backend name is "none". Unfortunately so
is CamelNullStore's provider name. Make sure these two misfits don't
get paired up!
-rw-r--r-- | mail/e-mail-config-service-backend.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/mail/e-mail-config-service-backend.c b/mail/e-mail-config-service-backend.c index c6c42ae7f5..8cd984d285 100644 --- a/mail/e-mail-config-service-backend.c +++ b/mail/e-mail-config-service-backend.c @@ -404,10 +404,15 @@ e_mail_config_service_backend_get_settings (EMailConfigServiceBackend *backend) backend_name = e_source_backend_get_backend_name (backend_extension); - extension_name = - e_source_camel_get_extension_name (backend_name); - camel_extension = - e_source_get_extension (source, extension_name); + /* XXX ESourceCollection's default backend name is "none". + * Unfortunately so is CamelNullStore's provider name. + * Make sure these two misfits don't get paired up! */ + if (g_strcmp0 (backend_name, "none") != 0) { + extension_name = + e_source_camel_get_extension_name (backend_name); + camel_extension = + e_source_get_extension (source, extension_name); + } } if (camel_extension == NULL) { |