Close the composer if the message is blank. Bug 743970.

This commit is contained in:
Michael James Gratton 2017-01-15 00:20:44 +11:00
parent 840a76dac3
commit 58b76ba958

View file

@ -1056,6 +1056,8 @@ public class ComposerWidget : Gtk.EventBox {
public CloseStatus should_close() {
if (this.is_closing)
return CloseStatus.PENDING_CLOSE;
if (this.is_blank)
return CloseStatus.DO_CLOSE;
bool try_to_save = this.can_save;