[gnome-contacts] contacts-contact-editor: Update all rows on insert
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] contacts-contact-editor: Update all rows on insert
- Date: Fri, 16 Jan 2015 16:14:12 +0000 (UTC)
commit 1453acab673775e3a21a31b7c27df90608f2c7b1
Author: Jonas Danielsson <jonas threetimestwo org>
Date: Fri Jan 16 05:49:34 2015 -0500
contacts-contact-editor: Update all rows on insert
https://bugzilla.gnome.org/show_bug.cgi?id=742739
src/contacts-contact-editor.vala | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-contact-editor.vala b/src/contacts-contact-editor.vala
index d77db61..3372f87 100644
--- a/src/contacts-contact-editor.vala
+++ b/src/contacts-contact-editor.vala
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]