From c8197a3a48140d14fbe553c5947a75b4212175cf Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Mon, 22 Jun 2009 11:13:05 +0200 Subject: [PATCH] Fixes NB#121603, always assume that DBus send/receive requests are not user driven (as they are not requests from UI) --- src/dbus_api/modest-dbus-callbacks.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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); -- 1.7.9.5