aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exchange-operations/exchange-config-listener.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/exchange-operations/exchange-config-listener.c')
-rw-r--r--plugins/exchange-operations/exchange-config-listener.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/exchange-operations/exchange-config-listener.c b/plugins/exchange-operations/exchange-config-listener.c
index 2165bd7899..b711c63e0d 100644
--- a/plugins/exchange-operations/exchange-config-listener.c
+++ b/plugins/exchange-operations/exchange-config-listener.c
@@ -1162,12 +1162,12 @@ remove_selected_non_offline_esources (ExchangeAccount *account, const char *gcon
if (ids) {
offline_mode = (gchar*) e_source_get_property (source,
"offline_sync");
- while ((node_to_be_deleted =
- g_slist_find_custom (ids,
- source_uid,
- (GCompareFunc) strcmp))) {
- if (!offline_mode ||
- (offline_mode && strcmp (offline_mode, "1"))) {
+ if (!offline_mode ||
+ (offline_mode && strcmp (offline_mode, "1"))) {
+ while ((node_to_be_deleted =
+ g_slist_find_custom (ids,
+ source_uid,
+ (GCompareFunc) strcmp))) {
g_free (node_to_be_deleted->data);
ids = g_slist_delete_link (ids,
node_to_be_deleted);