[geary/wip/email-flag-refinement-redux: 9/14] Fix ComposerWebView::is_empty sense



commit 06c0c71c7c2607de23da85b362064153066c1d31
Author: Michael Gratton <mike vee net>
Date:   Wed Feb 13 23:05:25 2019 +1100

    Fix ComposerWebView::is_empty sense
    
    This prevents losing a message if only a message body has been entered
    and there is nothing has ever been undone.

 src/client/composer/composer-web-view.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/client/composer/composer-web-view.vala b/src/client/composer/composer-web-view.vala
index efe83986..1fd3acd2 100644
--- a/src/client/composer/composer-web-view.vala
+++ b/src/client/composer/composer-web-view.vala
@@ -125,7 +125,7 @@ public class ComposerWebView : ClientWebView {
         // XXX this is a bit of a hack given the docs for is_empty,
         // above
         this.command_stack_changed.connect((can_undo, can_redo) => {
-                this.is_empty = !can_redo;
+                this.is_empty = !can_undo;
             });
     }
 


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