Commit 69704a5b authored by Sébastien Lafargue's avatar Sébastien Lafargue Committed by Sébastien Wilmet

Use proper function to remove (unset) metadata attributes

Some code use null instead of a string so Gio complain :

GLib-GIO-CRITICAL **:
 _g_file_attribute_value_get_string: assertion
'attr->type == G_FILE_ATTRIBUTE_TYPE_STRING' failed

https://bugzilla.gnome.org/show_bug.cgi?id=721798
parent cc8c55ea
......@@ -2995,9 +2995,7 @@ gedit_document_set_metadata (GeditDocument *doc,
else
{
/* Unset the key */
g_file_info_set_attribute (info, key,
G_FILE_ATTRIBUTE_TYPE_INVALID,
NULL);
g_file_info_remove_attribute (info, key);
}
}
......
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