From: Sergio Villar Senin Date: Mon, 9 Jul 2007 08:50:13 +0000 (+0000) Subject: * Fixes NB#60725 which affects systest, now an information note is shown instead... X-Git-Tag: git_migration_finished~2898 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=da3893676be4c4de5478595c937875aacd6ba2cd;ds=sidebyside * Fixes NB#60725 which affects systest, now an information note is shown instead of a information banner when notifying the user that an attachments has no registered viewer pmo-trunk-r2640 --- diff --git a/src/maemo/modest-platform.c b/src/maemo/modest-platform.c index ce260a2..685d6fc 100644 --- a/src/maemo/modest-platform.c +++ b/src/maemo/modest-platform.c @@ -351,20 +351,14 @@ modest_platform_activate_file (const gchar *path, const gchar *mime_type) con = osso_get_dbus_connection (osso_context); #ifdef MODEST_HAVE_OSSO_MIME result = osso_mime_open_file_with_mime_type (con, uri_path, mime_str->str); - g_string_free (mime_str, TRUE); - - if (result != 1) - hildon_banner_show_information (NULL, NULL, _("mcen_ni_noregistered_viewer")); - return result != 1; #else result = hildon_mime_open_file_with_mime_type (con, uri_path, mime_str->str); +#endif /*MODEST_HAVE_OSSO_MIME*/ g_string_free (mime_str, TRUE); if (result != 1) - hildon_banner_show_information (NULL, NULL, _("mcen_ni_noregistered_viewer")); + modest_platform_run_information_dialog (NULL, _("mcen_ni_noregistered_viewer")); return result != 1; -#endif /*MODEST_HAVE_OSSO_MIME*/ - } typedef struct {