From: Sergio Villar Senin Date: Thu, 21 Feb 2008 16:48:10 +0000 (+0000) Subject: * Fixes NB#81189, able to drop a folder in the root MMC account X-Git-Tag: git_migration_finished~1639 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=26a46ba0b21f04dd751a4555b1b26177369e0931 * Fixes NB#81189, able to drop a folder in the root MMC account pmo-trunk-r4219 --- diff --git a/src/widgets/modest-folder-view.c b/src/widgets/modest-folder-view.c index bf6455b..8aedf4c 100644 --- a/src/widgets/modest-folder-view.c +++ b/src/widgets/modest-folder-view.c @@ -2231,8 +2231,8 @@ drag_and_drop_from_folder_view (GtkTreeModel *source_model, forbidden = rules & MODEST_FOLDER_RULES_FOLDER_NON_WRITEABLE; } else if (TNY_IS_FOLDER_STORE(folder)) { /* enable local root as destination for folders */ - if (!MODEST_IS_TNY_LOCAL_FOLDERS_ACCOUNT (folder) - && TNY_IS_ACCOUNT (folder)) + if (!MODEST_IS_TNY_LOCAL_FOLDERS_ACCOUNT (folder) && + !modest_tny_account_is_memory_card_account (TNY_ACCOUNT (folder))) forbidden = TRUE; } g_object_unref (folder);