[geary/wip/discard-drafts-724911] Only save drafts when edits have happened in body



commit 4edb3c36cb82442049d8813f23fee8ee8682e182
Author: Charles Lindsay <chaz yorba org>
Date:   Wed Mar 5 16:39:43 2014 -0800

    Only save drafts when edits have happened in body

 src/client/composer/composer-window.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/client/composer/composer-window.vala b/src/client/composer/composer-window.vala
index e92dfb5..9a295ca 100644
--- a/src/client/composer/composer-window.vala
+++ b/src/client/composer/composer-window.vala
@@ -1555,6 +1555,9 @@ public class ComposerWindow : Gtk.Window {
     
     // Resets the draft save timeout.
     private void reset_draft_timer() {
+        if (!editor.can_undo())
+            return;
+        
         draft_save_label.label = "";
         if (draft_save_timeout_id != 0)
             Source.remove(draft_save_timeout_id);


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