From: Jose Dapena Paz Date: Tue, 17 Mar 2009 10:37:20 +0000 (+0000) Subject: Hide accounts not allowed for moving messages or folders in move to dialog X-Git-Tag: git_migration_finished~313 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=7e29164f00a6a43c5347a7d3db691f6c7d39366f Hide accounts not allowed for moving messages or folders in move to dialog (fixes NB#103983) pmo-trunk-r8064 --- diff --git a/src/widgets/modest-folder-view.c b/src/widgets/modest-folder-view.c index 9124187..7104dec 100644 --- a/src/widgets/modest-folder-view.c +++ b/src/widgets/modest-folder-view.c @@ -1985,6 +1985,16 @@ filter_row (GtkTreeModel *model, GtkTreeIter *iter, gpointer data) break; } } + if (retval && TNY_IS_ACCOUNT (instance) && + modest_tny_folder_store_is_remote (TNY_FOLDER_STORE (instance))) { + ModestProtocolType protocol_type; + + protocol_type = modest_tny_account_get_protocol_type (TNY_ACCOUNT (instance)); + retval = !modest_protocol_registry_protocol_type_has_tag + (modest_runtime_get_protocol_registry (), + protocol_type, + MODEST_PROTOCOL_REGISTRY_STORE_FORBID_MESSAGE_ADD); + } } /* apply special filters */