From: Sergio Villar Senin Date: Mon, 22 Jun 2009 09:13:05 +0000 (+0200) Subject: Fixes NB#121603, always assume that DBus send/receive requests are not user driven... X-Git-Tag: 3.0.17-rc18^2 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=c8197a3a48140d14fbe553c5947a75b4212175cf Fixes NB#121603, always assume that DBus send/receive requests are not user driven (as they are not requests from UI) --- diff --git a/src/dbus_api/modest-dbus-callbacks.c b/src/dbus_api/modest-dbus-callbacks.c index adf3f5a..61b7495 100644 --- a/src/dbus_api/modest-dbus-callbacks.c +++ b/src/dbus_api/modest-dbus-callbacks.c @@ -923,9 +923,6 @@ static gboolean on_idle_send_receive(gpointer user_data) { gboolean auto_update; - ModestWindow *top_win = NULL; - - top_win = modest_window_mgr_get_current_top (modest_runtime_get_window_mgr ()); gdk_threads_enter (); /* CHECKED */ @@ -934,8 +931,10 @@ on_idle_send_receive(gpointer user_data) MODEST_CONF_AUTO_UPDATE, NULL); if (auto_update) - /* Do send receive */ - modest_ui_actions_do_send_receive_all (top_win, FALSE, FALSE, FALSE); + /* Do send receive. Never set the current top window + as we always assume that DBus send/receive requests + are not user driven */ + modest_ui_actions_do_send_receive_all (NULL, FALSE, FALSE, FALSE); else /* Disable auto update */ modest_platform_set_update_interval (0);