[geary/wip/progress-monitor-assertion-725850] Initialize opening_monitor in local folders



commit e6e5d05af724a99931141cd39b93fc9d78ecd7c9
Author: Charles Lindsay <chaz yorba org>
Date:   Tue Mar 11 13:01:45 2014 -0700

    Initialize opening_monitor in local folders

 .../abstract/geary-abstract-local-folder.vala      |    4 ++++
 src/engine/api/geary-search-folder.vala            |    2 ++
 src/engine/imap-db/outbox/smtp-outbox-folder.vala  |    2 ++
 3 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/engine/abstract/geary-abstract-local-folder.vala 
b/src/engine/abstract/geary-abstract-local-folder.vala
index 7f831ee..bbc64c9 100644
--- a/src/engine/abstract/geary-abstract-local-folder.vala
+++ b/src/engine/abstract/geary-abstract-local-folder.vala
@@ -10,6 +10,10 @@
 public abstract class Geary.AbstractLocalFolder : Geary.AbstractFolder {
     private int open_count = 0;
     
+    public AbstractLocalFolder() {
+        opening_monitor = new Geary.SimpleProgressMonitor(Geary.ProgressType.ACTIVITY);
+    }
+    
     public override Geary.Folder.OpenState get_open_state() {
         return open_count > 0 ? Geary.Folder.OpenState.LOCAL : Geary.Folder.OpenState.CLOSED;
     }
diff --git a/src/engine/api/geary-search-folder.vala b/src/engine/api/geary-search-folder.vala
index b8f32a9..518b409 100644
--- a/src/engine/api/geary-search-folder.vala
+++ b/src/engine/api/geary-search-folder.vala
@@ -66,6 +66,8 @@ public class Geary.SearchFolder : Geary.AbstractLocalFolder, Geary.FolderSupport
     public signal void search_query_changed(string? query);
     
     public SearchFolder(Account account) {
+        base();
+        
         _account = account;
         
         account.folders_available_unavailable.connect(on_folders_available_unavailable);
diff --git a/src/engine/imap-db/outbox/smtp-outbox-folder.vala 
b/src/engine/imap-db/outbox/smtp-outbox-folder.vala
index f791242..9499aff 100644
--- a/src/engine/imap-db/outbox/smtp-outbox-folder.vala
+++ b/src/engine/imap-db/outbox/smtp-outbox-folder.vala
@@ -70,6 +70,8 @@ private class Geary.SmtpOutboxFolder : Geary.AbstractLocalFolder, Geary.FolderSu
     // Requires the Database from the get-go because it runs a background task that access it
     // whether open or not
     public SmtpOutboxFolder(ImapDB.Database db, Account account, Geary.ProgressMonitor sending_monitor) {
+        base();
+        
         this.db = db;
         _account = account;
         this.sending_monitor = sending_monitor;


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