aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/conduits/todo/todo-conduit.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/conduits/todo/todo-conduit.c')
-rw-r--r--calendar/conduits/todo/todo-conduit.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c
index 4c6289702c..8bd153364d 100644
--- a/calendar/conduits/todo/todo-conduit.c
+++ b/calendar/conduits/todo/todo-conduit.c
@@ -650,20 +650,18 @@ update_comp (GnomePilotConduitSyncAbs *conduit, CalComponent *comp,
static void
check_for_slow_setting (GnomePilotConduit *c, EToDoConduitContext *ctxt)
{
- int count, map_count;
+ GnomePilotConduitStandard *conduit = GNOME_PILOT_CONDUIT_STANDARD (c);
+ int map_count;
- count = g_list_length (ctxt->uids);
- map_count = g_hash_table_size (ctxt->map->pid_map);
-
/* If there are no objects or objects but no log */
- if (map_count == 0) {
- GnomePilotConduitStandard *conduit;
- LOG (" doing slow sync\n");
- conduit = GNOME_PILOT_CONDUIT_STANDARD (c);
+ map_count = g_hash_table_size (ctxt->map->pid_map);
+ if (map_count == 0)
gnome_pilot_conduit_standard_set_slow (conduit, TRUE);
- } else {
+
+ if (gnome_pilot_conduit_standard_get_slow (conduit))
+ LOG (" doing slow sync\n");
+ else
LOG (" doing fast sync\n");
- }
}
/* Pilot syncing callbacks */