Commit 1453acab authored by Jonas Danielsson's avatar Jonas Danielsson Committed by Erick Pérez Castellanos

contacts-contact-editor: Update all rows on insert

https://bugzilla.gnome.org/show_bug.cgi?id=742739
parent 3f5a52ad
......@@ -725,6 +725,20 @@ public class Contacts.ContactEditor : Grid {
}
}
}
foreach (var entry in writable_personas.entries) {
foreach (var field_entry in entry.value.entries) {
foreach (var row in field_entry.value.rows.keys) {
if (row >= idx) {
var new_rows = new HashMap <int, RowData?> ();
foreach (var old_row in field_entry.value.rows.keys) {
new_rows.set (old_row + 1, field_entry.value.rows[old_row]);
}
field_entry.value.rows = new_rows;
break;
}
}
}
}
container_grid.insert_row (idx);
}
......
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