}
/* If the message has nothing then mark the buffers as not
- modified */
+ modified. This happens in Maemo for example when opening a
+ new message from Contacts plugin, it sends "" instead of
+ NULLs */
gdk_threads_enter (); /* CHECKED */
if (!strncmp (idle_data->to, "", 1) &&
!strncmp (idle_data->to, "", 1) &&
!strncmp (idle_data->bcc, "", 1) &&
!strncmp (idle_data->subject, "", 1) &&
!strncmp (idle_data->body, "", 1) &&
- attachments == NULL)
+ attachments == NULL) {
modest_ui_actions_compose_msg(NULL, NULL, NULL, NULL, NULL, NULL, NULL, FALSE);
- else
+ } else {
modest_ui_actions_compose_msg(NULL, idle_data->to, idle_data->cc,
idle_data->bcc, idle_data->subject,
idle_data->body, attachments, TRUE);
+ }
gdk_threads_leave (); /* CHECKED */
cleanup:
g_slist_foreach(attachments, (GFunc)g_free, NULL);