aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-cal-popup.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-cal-popup.c')
-rw-r--r--calendar/gui/e-cal-popup.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/calendar/gui/e-cal-popup.c b/calendar/gui/e-cal-popup.c
index 050cf0df89..f3c9913715 100644
--- a/calendar/gui/e-cal-popup.c
+++ b/calendar/gui/e-cal-popup.c
@@ -403,16 +403,11 @@ ecalp_standard_menu_factory (EPopup *ecalp, void *data)
if (apps == NULL && strcmp(mime_type, "application/octet-stream") == 0) {
if (filename) {
- /* will gvfs misidentify TNEF attachments as MPEG? */
- if (!strcmp (filename, "winmail.dat"))
- apps = g_app_info_get_all_for_type ("application/vnd.ms-tnef");
- else {
- char *name_type = e_util_guess_mime_type (filename);
+ gchar *name_type;
- apps = g_app_info_get_all_for_type (name_type);
-
- g_free (name_type);
- }
+ name_type = e_util_guess_mime_type (filename);
+ apps = g_app_info_get_all_for_type (name_type);
+ g_free (name_type);
}
}
g_free (mime_type);