* fix for #62336
authorDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Tue, 3 Jul 2007 10:16:22 +0000 (10:16 +0000)
committerDirk-Jan C. Binnema <dirk-jan.binnema@nokia.com>
Tue, 3 Jul 2007 10:16:22 +0000 (10:16 +0000)
pmo-trunk-r2545

src/maemo/modest-platform.c

index d974b0f..4146bf6 100644 (file)
@@ -273,6 +273,11 @@ modest_platform_activate_uri (const gchar *uri)
                        break;
                }
        }
                        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"));
                        
        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;
 
        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);
        
        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;
                }
        }
                        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"));
        if (!result)
                hildon_banner_show_information (NULL, NULL, _("mcen_ib_unsupported_link"));
+       
        return result;
 }
 
        return result;
 }