From: Alberto Garcia Date: Tue, 6 Nov 2007 08:49:33 +0000 (+0000) Subject: Allow creation of folders under the MMC root folder X-Git-Tag: git_migration_finished~2160 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=58168ce48462edc4364fbac1fe73c5e5ef8c99ee Allow creation of folders under the MMC root folder from the "Move to" dialog. Fixes NB#75279 pmo-trunk-r3651 --- diff --git a/src/modest-ui-actions.c b/src/modest-ui-actions.c index 9252b72..7bc729e 100644 --- a/src/modest-ui-actions.c +++ b/src/modest-ui-actions.c @@ -3707,12 +3707,15 @@ on_move_to_dialog_folder_selection_changed (ModestFolderView* self, /* check if folder_store is an remote account */ if (TNY_IS_ACCOUNT (folder_store)) { TnyAccount *local_account = NULL; + TnyAccount *mmc_account = NULL; ModestTnyAccountStore *account_store = NULL; account_store = modest_runtime_get_account_store (); local_account = modest_tny_account_store_get_local_folders_account (account_store); + mmc_account = modest_tny_account_store_get_mmc_folders_account (account_store); - if ((gpointer) local_account != (gpointer) folder_store) { + if ((gpointer) local_account != (gpointer) folder_store && + (gpointer) mmc_account != (gpointer) folder_store) { is_local_account = FALSE; /* New button should be dimmed on remote account root */