Initialize opening_monitor in local folders

Closes: bgo #725850
This commit is contained in:
Charles Lindsay 2014-03-12 12:14:01 -07:00
parent 356a1aff58
commit ccfd1f0360
3 changed files with 8 additions and 0 deletions

View file

@ -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;
}

View file

@ -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);

View file

@ -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;