From 56edf691d72e71ef116d448dcf4f43193ec1e78e Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 24 Jul 2001 23:01:07 +0000 Subject: Fix for bug #5174. 2001-07-24 Jeffrey Stedfast * component-factory.c (create_view): Fix for bug #5174. svn path=/trunk/; revision=11368 --- mail/ChangeLog | 4 ++++ mail/component-factory.c | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 81f6db6a61..1f52782136 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,7 @@ +2001-07-24 Jeffrey Stedfast + + * component-factory.c (create_view): Fix for bug #5174. + 2001-07-24 Jason Leach * mail-config.c (config_read): Match the prefix for the diff --git a/mail/component-factory.c b/mail/component-factory.c index d7fb1ee8f9..6b8d8a4984 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -128,8 +128,10 @@ create_view (EvolutionShellComponent *shell_component, corba_shell = bonobo_object_corba_objref (BONOBO_OBJECT (shell_client)); if (g_strcasecmp (folder_type, "mail") == 0) { - /* hack-tastic! */ - if (strstr (physical_uri, "noselect=yes")) + CamelURL *url; + + url = camel_url_new (physical_uri, NULL); + if (url && !g_strcasecmp (camel_url_get_param (url, "noselect"), "yes")) control = create_noselect_control (); else control = folder_browser_factory_new_control (physical_uri, -- cgit v1.2.3