[evolution-ews] Bug #687228 - Master's ESource change causes rewrite of GAL ESource
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-ews] Bug #687228 - Master's ESource change causes rewrite of GAL ESource
- Date: Wed, 31 Oct 2012 18:36:24 +0000 (UTC)
commit 58c2fb906a403a693cf61b37e8e6a0666370198c
Author: Milan Crha <mcrha redhat com>
Date: Wed Oct 31 19:35:55 2012 +0100
Bug #687228 - Master's ESource change causes rewrite of GAL ESource
src/collection/e-ews-backend.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/collection/e-ews-backend.c b/src/collection/e-ews-backend.c
index d089a81..81f5f0e 100644
--- a/src/collection/e-ews-backend.c
+++ b/src/collection/e-ews-backend.c
@@ -369,12 +369,18 @@ ews_backend_add_gal_source (EEwsBackend *backend)
if (oal_selected != NULL) {
gchar *cp = strrchr (oal_selected, ':');
if (cp != NULL) {
- *cp++ = '\0';
+ /* skip ':' and any leading backslash in the display name */
+ cp++;
+ while (*cp && *cp == '\\')
+ cp++;
+
display_name = cp;
oal_id = oal_selected;
} else {
g_free (oal_selected);
oal_selected = NULL;
+
+ camel_ews_settings_set_oal_selected (settings, NULL);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]