From: Dirk-Jan C. Binnema Date: Tue, 3 Jul 2007 10:16:22 +0000 (+0000) Subject: * fix for #62336 X-Git-Tag: git_migration_finished~2992 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=de7faa156f48922a1acf26e3221eb48e1b208179 * fix for #62336 pmo-trunk-r2545 --- 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; }