From: Alberto Garcia Date: Tue, 20 Nov 2007 18:10:09 +0000 (+0000) Subject: Don't wait till the message is completely saved to show the 'Saved to drafts' banner X-Git-Tag: git_migration_finished~2047 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=7cf7d40552d4509091984e1d647a4983a3205fe4 Don't wait till the message is completely saved to show the 'Saved to drafts' banner pmo-trunk-r3786 --- diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index 8ba9fe9..9708e5c 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -2197,7 +2197,6 @@ on_save_to_drafts_cb (ModestMailOperation *mail_op, gpointer user_data) { ModestMsgEditWindow *edit_window; - char *info_text; ModestMainWindow *win; /* FIXME. Make the header view sensitive again. This is a @@ -2218,9 +2217,6 @@ 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 @@ -2231,6 +2227,7 @@ modest_ui_actions_on_save_to_drafts (GtkWidget *widget, ModestMsgEditWindow *edi MsgData *data; gchar *account_name, *from; ModestAccountMgr *account_mgr; + char *info_text; g_return_if_fail (MODEST_IS_MSG_EDIT_WINDOW(edit_window)); @@ -2284,7 +2281,11 @@ modest_ui_actions_on_save_to_drafts (GtkWidget *widget, ModestMsgEditWindow *edi data->priority_flags, on_save_to_drafts_cb, edit_window); + info_text = g_strdup_printf (_("mail_va_saved_to_drafts"), _("mcen_me_folder_drafts")); + modest_platform_information_banner (NULL, NULL, info_text); + /* Frees */ + g_free (info_text); g_free (from); g_free (account_name); g_object_unref (G_OBJECT (transport_account));