[Xfce4-commits] <postler:master> Create missing special folders if needed
Christian Dywan
noreply at xfce.org
Mon Dec 20 04:58:02 CET 2010
Updating branch refs/heads/master
to 8bb2de9cac1a555309d3330289600bf55a1b405a (commit)
from 853f47cc644c411732d093ae90da6513dd2f2f99 (commit)
commit 8bb2de9cac1a555309d3330289600bf55a1b405a
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Dec 20 01:18:03 2010 +0100
Create missing special folders if needed
postler/postler-folders.vala | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/postler/postler-folders.vala b/postler/postler-folders.vala
index 76f0e95..50f4b79 100644
--- a/postler/postler-folders.vala
+++ b/postler/postler-folders.vala
@@ -113,7 +113,6 @@ public class Postler.Folders : Gtk.TreeView {
continue;
}
- bool incomplete = account_info.get_folder (FolderType.SENT) == null;
try {
var folder_dir = File.new_for_path (account_info.path);
@@ -252,6 +251,7 @@ public class Postler.Folders : Gtk.TreeView {
unread_monitor_changed (msg_dir, path, folder.label ?? folder_name);
}
+ /* Look for missing special folders or create them */
Gtk.TreeIter folder_iter = new Gtk.TreeIter ();
account_info.verify_folders ((type, folder) => {
if (get_folder_iter (account_info.path + "/" + folder.role,
@@ -260,10 +260,10 @@ public class Postler.Folders : Gtk.TreeView {
store.set (folder_iter,
Columns.ICON, folder.stock_id ?? Gtk.STOCK_DIRECTORY,
Columns.NAME, folder.label);
- }
+ need_update = true;
+ } else
+ DirUtils.create (account_info.path + "/" + folder.role, 0700);
});
- if (incomplete)
- need_update = true;
expand_row (store.get_path (account_iter), false);
}
More information about the Xfce4-commits
mailing list