From 73be46711d75b4e66d1034dff51e595652d48169 Mon Sep 17 00:00:00 2001 From: Jonathan Blandford Date: Sun, 26 May 2002 06:13:12 +0000 Subject: [PATCH] patch from Till Adam to not die if we have the Sun May 26 01:50:22 2002 Jonathan Blandford * gnome-default-applications-properties.c (read_editor): patch from Till Adam to not die if we have the mimedata not installed. --- capplets/default-applications/ChangeLog | 6 ++++++ .../gnome-default-applications-properties.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/capplets/default-applications/ChangeLog b/capplets/default-applications/ChangeLog index c93e8fb13..30b12368f 100644 --- a/capplets/default-applications/ChangeLog +++ b/capplets/default-applications/ChangeLog @@ -1,3 +1,9 @@ +Sun May 26 01:50:22 2002 Jonathan Blandford + + * gnome-default-applications-properties.c (read_editor): patch + from Till Adam to not die if we have the + mimedata not installed. + 2002-05-20 jacob berkman * gnome-default-applications-properties.c (text_apply_editor): diff --git a/capplets/default-applications/gnome-default-applications-properties.c b/capplets/default-applications/gnome-default-applications-properties.c index 6a502b37b..85371209e 100644 --- a/capplets/default-applications/gnome-default-applications-properties.c +++ b/capplets/default-applications/gnome-default-applications-properties.c @@ -218,7 +218,8 @@ read_editor (GConfClient *client, gnome_vfs_mime_get_default_action_type ("text/plain") == GNOME_VFS_MIME_ACTION_TYPE_APPLICATION); mime_app = gnome_vfs_mime_get_default_application ("text/plain"); - if (!strcmp (mime_app->id, MIME_APPLICATION_ID)) + + if (mime_app == NULL || !strcmp (mime_app->id, MIME_APPLICATION_ID)) goto read_editor_custom; for (li = text_editors; li; li = li->next) {