Commit 1d44acf3 authored by Christian Neumair's avatar Christian Neumair Committed by Christian Neumair

Only update referenced MIME type if it actually changed.

2008-07-20  Christian Neumair  <cneumair@gnome.org>

	* libnautilus-private/nautilus-file.c (update_info_internal):
	Only update referenced MIME type if it actually changed.

svn path=/trunk/; revision=14377
parent ab67b661
2008-07-20 Christian Neumair <cneumair@gnome.org>
* libnautilus-private/nautilus-file.c (update_info_internal):
Only update referenced MIME type if it actually changed.
2008-07-20 Christian Neumair <cneumair@gnome.org>
* libnautilus-private/nautilus-dnd.c (check_same_fs),
......
......@@ -1808,9 +1808,9 @@ update_info_internal (NautilusFile *file,
mime_type = g_file_info_get_content_type (info);
if (eel_strcmp (eel_ref_str_peek (file->details->mime_type), mime_type) != 0) {
changed = TRUE;
eel_ref_str_unref (file->details->mime_type);
file->details->mime_type = eel_ref_str_get_unique (mime_type);
}
eel_ref_str_unref (file->details->mime_type);
file->details->mime_type = eel_ref_str_get_unique (mime_type);
selinux_context = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_SELINUX_CONTEXT);
if (eel_strcmp (file->details->selinux_context, selinux_context) != 0) {
......
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