[geary/wip/728002-webkit2: 8/13] Close the composer if the message is blank. Bug 743970.



commit c314f666207a3352ef9be634c2b02c9501332360
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]