[gnome-contacts] Don't edit uneditable rows
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Don't edit uneditable rows
- Date: Tue, 7 Feb 2012 14:13:18 +0000 (UTC)
commit 6279247aae73b4d4de1148af1a6defbdfee6555d
Author: Alexander Larsson <alexl redhat com>
Date: Tue Feb 7 15:13:00 2012 +0100
Don't edit uneditable rows
src/contacts-contact-pane.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 96fb247..e5f2e72 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -436,7 +436,10 @@ public abstract class Contacts.DataFieldRow : FieldRow {
public DataFieldRow (FieldSet field_set) {
base (field_set.sheet.pane.row_group);
- set_editable (true);
+ bool editable =
+ Contact.persona_has_writable_property (field_set.sheet.persona,
+ field_set.property_name);
+ set_editable (editable);
this.field_set = field_set;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]