Commit ff79d296 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Handle NULL activation uris from drives

2007-01-11  Alexander Larsson  <alexl@redhat.com>

	* src/file-manager/fm-properties-window.c (get_target_file_for_original_file):
	
	Handle NULL activation uris from drives

svn path=/trunk/; revision=12690
parent 7ec88ead
2007-01-11 Alexander Larsson <alexl@redhat.com>
* src/file-manager/fm-properties-window.c (get_target_file_for_original_file):
Handle NULL activation uris from drives
2007-01-11 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-ui-utilities.c:
......
......@@ -309,8 +309,10 @@ get_target_file_for_original_file (NautilusFile *file)
drive = nautilus_file_get_drive (file);
if (drive != NULL) {
uri_to_display = gnome_vfs_drive_get_activation_uri (drive);
target_file = nautilus_file_get (uri_to_display);
g_free (uri_to_display);
if (uri_to_display != NULL) {
target_file = nautilus_file_get (uri_to_display);
g_free (uri_to_display);
}
}
} else if (NAUTILUS_IS_DESKTOP_ICON_FILE (file)) {
link = nautilus_desktop_icon_file_get_link (NAUTILUS_DESKTOP_ICON_FILE (file));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment