[Xfce4-commits] <postler:master> Don't use the sanitized folder name for lookup
Christian Dywan
noreply at xfce.org
Thu Dec 16 21:38:01 CET 2010
Updating branch refs/heads/master
to 09b04736fdee16dd71efd4ce90b454350ecd24de (commit)
from 063f245d7d6ec47d5c3ac2fab77903cfb0a8bf8d (commit)
commit 09b04736fdee16dd71efd4ce90b454350ecd24de
Author: Christian Dywan <christian at twotoasts.de>
Date: Thu Dec 16 21:36:23 2010 +0100
Don't use the sanitized folder name for lookup
postler/postler-accounts.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/postler/postler-accounts.vala b/postler/postler-accounts.vala
index b7c2bdd..f9bc0c4 100644
--- a/postler/postler-accounts.vala
+++ b/postler/postler-accounts.vala
@@ -90,10 +90,10 @@ namespace Postler {
}
public unowned MailFolder get_localized_folder (string folder_name) {
- string sane_name = folder_name.replace ("[Google Mail]", "[Gmail]");
for (int type = 0; type < FolderType.MAX; type++)
- if (this.folders[type] == sane_name)
+ if (this.folders[type] == folder_name)
return localized_folders[type];
+ string sane_name = folder_name.replace ("[Google Mail]", "[Gmail]");
for (int type = 0; type < FolderType.MAX; type++) {
if (this.folders[type] == null
&& sane_name in localized_folders[type].localized) {
More information about the Xfce4-commits
mailing list