From 7e29164f00a6a43c5347a7d3db691f6c7d39366f Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Tue, 17 Mar 2009 10:37:20 +0000 Subject: [PATCH] Hide accounts not allowed for moving messages or folders in move to dialog (fixes NB#103983) pmo-trunk-r8064 --- src/widgets/modest-folder-view.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 */ -- 1.7.9.5