Don't crash if all files were removed due to error when activating.

2008-02-22  Alexander Larsson  <alexl@redhat.com>

        * libnautilus-private/nautilus-mime-actions.c:
        (activation_mount_not_mounted):
	Don't crash if all files were removed due to error
	when activating.


svn path=/trunk/; revision=13805
This commit is contained in:
Alexander Larsson 2008-02-22 14:31:43 +00:00 committed by Alexander Larsson
parent e961c15959
commit c03865d477
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2008-02-22 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-mime-actions.c:
(activation_mount_not_mounted):
Don't crash if all files were removed due to error
when activating.
2008-02-22 Chrustian Neumair <cneumair@gnome.org>
* libnautilus-private/nautilus-icon-container.c:

View file

@ -1284,6 +1284,12 @@ activation_mount_not_mounted (ActivateParameters *parameters)
}
parameters->tried_mounting = TRUE;
if (parameters->files == NULL) {
activation_parameters_free (parameters);
return;
}
nautilus_file_list_call_when_ready
(parameters->files,
nautilus_mime_actions_get_required_file_attributes () | NAUTILUS_FILE_ATTRIBUTE_LINK_INFO,