[geary/wip/714922-multiple-addresses: 3/4] Don't re-open drafts folder for same account



commit f8a91c426a1a7768f083b0ec5d10af2655b384f4
Author: Charles Lindsay <chaz yorba org>
Date:   Thu Mar 20 16:45:38 2014 -0700

    Don't re-open drafts folder for same account

 src/client/composer/composer-window.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/client/composer/composer-window.vala b/src/client/composer/composer-window.vala
index e12beca..de2a476 100644
--- a/src/client/composer/composer-window.vala
+++ b/src/client/composer/composer-window.vala
@@ -1726,7 +1726,8 @@ public class ComposerWindow : Gtk.Window {
             account.information.real_name, from_list.get(index).email)).to_rfc822_string();
         set_entry_completions();
         
-        open_drafts_folder_async.begin(cancellable_drafts);
+        if (drafts_folder == null || drafts_folder.account != account)
+            open_drafts_folder_async.begin(cancellable_drafts);
         
         reset_draft_timer();
     }


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