Fixes NB#114184, autoupdate not working when switching connections
authorSergio Villar Senin <svillar@igalia.com>
Thu, 17 Sep 2009 14:34:23 +0000 (16:34 +0200)
committerSergio Villar Senin <svillar@igalia.com>
Fri, 18 Sep 2009 08:50:24 +0000 (10:50 +0200)
Added RUN_DELAYED flag to the alarm event

src/hildon2/modest-platform.c

index b7c3df0..53bfd52 100644 (file)
@@ -1546,7 +1546,7 @@ modest_platform_set_update_interval (guint minutes)
         * (The old maemo email-client did this, though it isn't specified in the UI spec.)
         * ALARM_EVENT_CONNECTED will prevent the alarm from being called in case that the device is offline
          */
-       event->flags = ALARM_EVENT_CONNECTED;
+       event->flags = ALARM_EVENT_CONNECTED | ALARM_EVENT_RUN_DELAYED;
 
        alarm_cookie = alarmd_event_add (event);