diff options
author | Jonathan Blandford <jrb@gnome.org> | 2002-05-26 06:13:12 +0000 |
---|---|---|
committer | Jonathan Blandford <jrb@src.gnome.org> | 2002-05-26 06:13:12 +0000 |
commit | 73be46711d75b4e66d1034dff51e595652d48169 (patch) | |
tree | 837dbf5f42eb683b3dbcb7716914ff53d415c8bf /capplets/default-applications/gnome-default-applications-properties.c | |
parent | 942407422097b00cb8896a4523601657b20acf2e (diff) | |
download | gnome-control-center-73be46711d75b4e66d1034dff51e595652d48169.tar.gz |
patch from Till Adam <till@adam-lilienthal.de> to not die if we have the
Sun May 26 01:50:22 2002 Jonathan Blandford <jrb@gnome.org>
* gnome-default-applications-properties.c (read_editor): patch
from Till Adam <till@adam-lilienthal.de> to not die if we have the
mimedata not installed.
Diffstat (limited to 'capplets/default-applications/gnome-default-applications-properties.c')
-rw-r--r-- | capplets/default-applications/gnome-default-applications-properties.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |