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.
This commit is contained in:
Jonathan Blandford 2002-05-26 06:13:12 +00:00 committed by Jonathan Blandford
parent 9424074220
commit 73be46711d
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
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.
2002-05-20 jacob berkman <jacob@ximian.com>
* gnome-default-applications-properties.c (text_apply_editor):

View file

@ -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) {