X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-ui-actions.c;h=3890dba1791c8eb7befff114f17b38837099de63;hp=248df082585cb46272e77be443cf231bcc004e53;hb=9ef97fb0e52562d0107535f6c061247ce8f693ac;hpb=e75cb10b60c465a19c5f7fced8a48bf30ae3e9a2 diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index 248df08..3890dba 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -2214,6 +2214,7 @@ on_save_to_drafts_cb (ModestMailOperation *mail_op, gpointer user_data) { ModestMsgEditWindow *edit_window; + char *info_text; edit_window = MODEST_MSG_EDIT_WINDOW (user_data); @@ -2222,6 +2223,9 @@ on_save_to_drafts_cb (ModestMailOperation *mail_op, return; modest_msg_edit_window_set_draft (edit_window, saved_draft); + info_text = g_strdup_printf (_("mail_va_saved_to_drafts"), _("mcen_me_folder_drafts")); + modest_platform_information_banner (NULL, NULL, info_text); + g_free (info_text); } void @@ -2232,7 +2236,6 @@ modest_ui_actions_on_save_to_drafts (GtkWidget *widget, ModestMsgEditWindow *edi MsgData *data; gchar *account_name, *from; ModestAccountMgr *account_mgr; - gchar *info_text = NULL; g_return_if_fail (MODEST_IS_MSG_EDIT_WINDOW(edit_window)); @@ -2293,11 +2296,7 @@ modest_ui_actions_on_save_to_drafts (GtkWidget *widget, ModestMsgEditWindow *edi g_object_unref (G_OBJECT (mail_operation)); modest_msg_edit_window_free_msg_data (edit_window, data); - - info_text = g_strdup_printf (_("mail_va_saved_to_drafts"), _("mcen_me_folder_drafts")); - modest_platform_information_banner (NULL, NULL, info_text); modest_msg_edit_window_reset_modified (edit_window); - g_free (info_text); } /* For instance, when clicking the Send toolbar button when editing a message: */