From de7faa156f48922a1acf26e3221eb48e1b208179 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 3 Jul 2007 10:16:22 +0000 Subject: [PATCH] * fix for #62336 pmo-trunk-r2545 --- src/maemo/modest-platform.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/maemo/modest-platform.c b/src/maemo/modest-platform.c index d974b0f..4146bf6 100644 --- a/src/maemo/modest-platform.c +++ b/src/maemo/modest-platform.c @@ -273,6 +273,11 @@ modest_platform_activate_uri (const gchar *uri) break; } } + + /* if we could open it with email, try something else */ + if (!result) + result = osso_uri_open (uri, NULL, NULL); + if (!result) hildon_banner_show_information (NULL, NULL, _("mcen_ib_unsupported_link")); @@ -293,7 +298,6 @@ modest_platform_activate_uri (const gchar *uri) if (!uri) return FALSE; - /* the default action should be email */ scheme = hildon_uri_get_scheme_from_uri (uri, NULL); actions = hildon_uri_get_actions (scheme, NULL); @@ -310,9 +314,14 @@ modest_platform_activate_uri (const gchar *uri) break; } } - + + /* if we could open it with email, try something else */ + if (!result) + result = hildon_uri_open (uri, NULL, NULL); + if (!result) hildon_banner_show_information (NULL, NULL, _("mcen_ib_unsupported_link")); + return result; } -- 1.7.9.5