Commit 64f9b61c authored by Philip Withnall's avatar Philip Withnall Committed by Philip Withnall

contact-editor: Don’t create empty NoteFieldDetails

It’s explicitly banned by the folks API documentation and results in
warnings from folks.

https://bugzilla.gnome.org/show_bug.cgi?id=701990
parent be6bd192
......@@ -158,8 +158,10 @@ public class Contacts.ContactEditor : Grid {
text.get_buffer ().get_start_iter (out start);
text.get_buffer ().get_end_iter (out end);
var value = text.get_buffer ().get_text (start, end, true);
var details = new NoteFieldDetails (value, row_entry.value.details.parameters);
new_details.add (details);
if (value != "") {
var details = new NoteFieldDetails (value, row_entry.value.details.parameters);
new_details.add (details);
}
}
var new_value = Value (new_details.get_type ());
new_value.set_object (new_details);
......
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