2007-07-05 Murray Cumming <murrayc@murrayc.com>
authorMurray Cumming <murrayc@murrayc.com>
Thu, 5 Jul 2007 09:41:39 +0000 (09:41 +0000)
committerMurray Cumming <murrayc@murrayc.com>
Thu, 5 Jul 2007 09:41:39 +0000 (09:41 +0000)
* src/modest-ui-actions.c: (modest_ui_actions_on_send):
Call modest_platform_connect_and_wait() to ask for a connection if necessary,
to fix projects.maemo.org bug NB#62439.

pmo-trunk-r2581

ChangeLog2
src/modest-ui-actions.c

index 79484be..99baef1 100644 (file)
@@ -1,5 +1,11 @@
 2007-07-05  Murray Cumming <murrayc@murrayc.com>
 
+       * src/modest-ui-actions.c: (modest_ui_actions_on_send):
+       Call modest_platform_connect_and_wait() to ask for a connection if necessary, 
+       to fix projects.maemo.org bug NB#62439.
+
+2007-07-05  Murray Cumming <murrayc@murrayc.com>
+
        * src/modest-tny-account.c: (on_connection_status_changed):
        Really do not use tny_device_force_offline() here. See the previous comment.
 
index b26c725..09cda7c 100644 (file)
@@ -1743,6 +1743,10 @@ modest_ui_actions_on_send (GtkWidget *widget, ModestMsgEditWindow *edit_window)
        if (!modest_msg_edit_window_check_names (edit_window))
                return;
        
+       /* Offer the connection dialog, if necessary: */        
+       if (!modest_platform_connect_and_wait (GTK_WINDOW (edit_window)))
+               return;
+       
        /* FIXME: Code added just for testing. The final version will
           use the send queue provided by tinymail and some
           classifier */