[evolution-data-server] Bug #647429 - Hide port-entry for providers without port



commit 1c5e0edd977d58fb8f36a5e0505c7144946aeff3
Author: Dan Vrátil <dvratil redhat com>
Date:   Mon Apr 18 18:03:54 2011 +0200

    Bug #647429 - Hide port-entry for providers without port

 camel/camel-provider.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/camel/camel-provider.c b/camel/camel-provider.c
index 3340474..edea3ae 100644
--- a/camel/camel-provider.c
+++ b/camel/camel-provider.c
@@ -271,6 +271,11 @@ camel_provider_register (CamelProvider *provider)
 		l = l->next;
 	}
 
+	if (provider->port_entries)
+		provider->url_flags |= CAMEL_URL_NEED_PORT;
+	else
+		provider->url_flags &= ~CAMEL_URL_NEED_PORT;
+
 	g_hash_table_insert (
 		provider_table,
 		(gpointer) provider->protocol, provider);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]