Show remote folders in new folder dialog
authorSergio Villar Senin <svillar@igalia.com>
Thu, 18 Jun 2009 15:04:45 +0000 (17:04 +0200)
committerSergio Villar Senin <svillar@igalia.com>
Thu, 18 Jun 2009 16:18:47 +0000 (18:18 +0200)
src/hildon2/modest-platform.c

index 17bec8d..3b73d47 100644 (file)
@@ -958,7 +958,9 @@ folder_picker_new (TnyFolderStore *suggested, FolderPickerHelper *helper)
 
                folder_picker_set_store (GTK_BUTTON (button), suggested);
 
 
                folder_picker_set_store (GTK_BUTTON (button), suggested);
 
-               if (TNY_IS_ACCOUNT (suggested)) {
+               if (TNY_IS_ACCOUNT (suggested) &&
+                   !modest_tny_account_is_virtual_local_folders (TNY_ACCOUNT (suggested)) &&
+                   !modest_tny_account_is_memory_card_account (TNY_ACCOUNT (suggested))) {
                        acc_id = tny_account_get_id ((TnyAccount *) suggested);
                } else {
                        TnyAccount *account = modest_tny_folder_get_account ((TnyFolder *) suggested);
                        acc_id = tny_account_get_id ((TnyAccount *) suggested);
                } else {
                        TnyAccount *account = modest_tny_folder_get_account ((TnyFolder *) suggested);