* reverted to 199
[modest] / src / modest-tny-store-actions.c
index ad8826a..624b415 100644 (file)
@@ -52,10 +52,11 @@ void
 modest_tny_store_actions_update_folders (ModestTnyStoreActions *self,
                                           TnyStoreAccountIface *storage_account)
 {
+
        const TnyListIface* folders;
        TnyIteratorIface* ifolders;
        gpointer *cur_folder;
-#if 0  
+
        folders = tny_store_account_iface_get_folders (storage_account, 
                                                                                                  TNY_STORE_ACCOUNT_FOLDER_TYPE_SUBSCRIBED);
        
@@ -66,9 +67,9 @@ modest_tny_store_actions_update_folders (ModestTnyStoreActions *self,
                          tny_iterator_iface_next (ifolders))
        {
                cur_folder = tny_iterator_iface_current (ifolders);
-//             tny_msg_folder_iface_refresh (cur_folder);
+               tny_msg_folder_iface_refresh (cur_folder);
        }
-#endif
+       g_object_unref (ifolders);
 }
 
 
@@ -136,4 +137,3 @@ modest_tny_store_actions_new (void)
 {
        return G_OBJECT(g_object_new(MODEST_TYPE_TNY_STORE_ACTIONS, NULL));
 }
-