[Xfce4-commits] <postler:master> Don't add folders to hide more than once

Christian Dywan noreply at xfce.org
Tue Nov 30 17:20:03 CET 2010


Updating branch refs/heads/master
         to 35f81f8c100cca7651e45004778e68f1c8cca954 (commit)
       from 4319a34239c24aab1be4d853d69c727ff81b61ff (commit)

commit 35f81f8c100cca7651e45004778e68f1c8cca954
Author: Christian Dywan <christian at twotoasts.de>
Date:   Mon Nov 29 23:22:15 2010 +0100

    Don't add folders to hide more than once

 postler/postler-accounts.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/postler/postler-accounts.vala b/postler/postler-accounts.vala
index 71cc517..ead98dc 100644
--- a/postler/postler-accounts.vala
+++ b/postler/postler-accounts.vala
@@ -100,7 +100,9 @@ namespace Postler {
                 if (this.folders[type] == null
                  && folder_name in localized_folders[type].localized) {
                     this.folders[type] = folder_name;
-                    this.hide += "," + localized_folders[type].role;
+                    unowned string? role = localized_folders[type].role;
+                    if (role != null && !this.hide.contains (role))
+                        this.hide += "," + role;
                     return localized_folders[type];
                 }
             }



More information about the Xfce4-commits mailing list