X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fdbus_api%2Fmodest-dbus-callbacks.c;h=38a92cb49a187c35c1404eb231208d63f59c1e19;hp=28b60ef1d3eaf5668d5001458e4550d359faa963;hb=9ef56d6da803af967c2a5ecd32ff4895519c35c2;hpb=6cea3db6d5ca7a06084546f4dc925b5be600f3e2 diff --git a/src/dbus_api/modest-dbus-callbacks.c b/src/dbus_api/modest-dbus-callbacks.c index 28b60ef..38a92cb 100644 --- a/src/dbus_api/modest-dbus-callbacks.c +++ b/src/dbus_api/modest-dbus-callbacks.c @@ -889,11 +889,9 @@ static gboolean on_idle_send_receive(gpointer user_data) { gboolean auto_update; - ModestWindow *main_win = NULL; + ModestWindow *top_win = NULL; - main_win = - modest_window_mgr_get_main_window (modest_runtime_get_window_mgr (), - FALSE); /* don't create */ + top_win = modest_window_mgr_get_current_top (modest_runtime_get_window_mgr ()); gdk_threads_enter (); /* CHECKED */ @@ -903,7 +901,7 @@ on_idle_send_receive(gpointer user_data) if (auto_update) /* Do send receive */ - modest_ui_actions_do_send_receive_all (main_win, FALSE, FALSE, FALSE); + modest_ui_actions_do_send_receive_all (top_win, FALSE, FALSE, FALSE); else /* Disable auto update */ modest_platform_set_update_interval (0);