[geary/bug/728002-webkit2: 86/140] Close the composer if the message is blank. Bug 743970.



commit 58b76ba958026b9836ce43703cf8d1b356e2939e
Author: Michael James Gratton <mike vee net>
Date:   Sun Jan 15 00:20:44 2017 +1100

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

 src/client/composer/composer-widget.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/client/composer/composer-widget.vala b/src/client/composer/composer-widget.vala
index fc36c3f..d3828c3 100644
--- a/src/client/composer/composer-widget.vala
+++ b/src/client/composer/composer-widget.vala
@@ -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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]