[geary/wip/composer-shortcuts: 3/4] Fix ComposerWebView::is_empty sense
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/composer-shortcuts: 3/4] Fix ComposerWebView::is_empty sense
- Date: Wed, 13 Feb 2019 12:26:30 +0000 (UTC)
commit 8a979ff8e85bdf6702b09d0b93874af1fd583e50
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]