Make accounts window send receive work on all accounts.
authorJose Dapena Paz <jdapena@igalia.com>
Wed, 17 Dec 2008 15:32:22 +0000 (15:32 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Wed, 17 Dec 2008 15:32:22 +0000 (15:32 +0000)
pmo-drop-split-view-r6923

src/modest-ui-actions.c

index a3ae0ce..a691516 100644 (file)
@@ -49,6 +49,7 @@
 #include <tny-camel-imap-folder.h>
 #include <tny-camel-pop-folder.h>
 #ifdef MODEST_TOOLKIT_HILDON2
+#include <modest-accounts-window.h>
 #include <hildon/hildon-pannable-area.h>
 #include <hildon/hildon-gtk.h>
 #include <modest-header-window.h>
@@ -2270,6 +2271,10 @@ modest_ui_actions_on_send_receive (GtkAction *action, ModestWindow *win)
                /* Refresh the active account. Force the connection if needed
                   and poke the status of all folders */
                modest_ui_actions_do_send_receive (NULL, TRUE, TRUE, TRUE, win);
+#ifdef MODEST_TOOLKIT_HILDON2
+       } else if (MODEST_IS_ACCOUNTS_WINDOW (win)) {
+               modest_ui_actions_do_send_receive_all (win, TRUE, TRUE, TRUE);
+#endif
        } else {
                const gchar *active_account;
                active_account = modest_window_get_active_account (MODEST_WINDOW (win));