* Modest was not replying to messages in the msg view window due to the lack of...
authorSergio Villar Senin <svillar@igalia.com>
Mon, 9 Jul 2007 07:13:14 +0000 (07:13 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Mon, 9 Jul 2007 07:13:14 +0000 (07:13 +0000)
pmo-trunk-r2634

src/modest-ui-actions.c

index f868d21..41b22d3 100644 (file)
@@ -979,8 +979,10 @@ reply_forward_cb (ModestMailOperation *mail_op,
        ModestWindowMgr *mgr = NULL;
        gchar *signature = NULL;
 
-       /* If there was any error */
-       if (!modest_ui_actions_msg_retrieval_check (mail_op, header, msg))
+       /* If there was any error. The mail operation could be NULL,
+          this means that we already have the message downloaded and
+          that we didn't do a mail operation to retrieve it */
+       if (mail_op && !modest_ui_actions_msg_retrieval_check (mail_op, header, msg))
                return;
                        
        g_return_if_fail (user_data != NULL);