Closes #7374 Resolved issue where draft not deleted when sending mail

This commit is contained in:
Eric Gregory 2013-08-29 12:38:34 -07:00
parent 0b391fcead
commit 374981ef77

View file

@ -758,10 +758,8 @@ public class ComposerWindow : Gtk.Window {
// Sends the current message. // Sends the current message.
private void on_send() { private void on_send() {
if (should_send()) { if (should_send())
on_send_async.begin(); on_send_async.begin();
destroy();
}
} }
// Used internally by on_send() // Used internally by on_send()
@ -776,6 +774,7 @@ public class ComposerWindow : Gtk.Window {
} }
yield delete_draft_async(); yield delete_draft_async();
destroy(); // Only close window after draft is deleted; this closes the drafts folder.
} }
// Returns the drafts folder for the current From account. // Returns the drafts folder for the current From account.