Ensure that Edsf.PersonaStore.always-writeable-properties is empty for
EDS address books which are read-only. Similarly, ensure that
Edsf.Persona.writeable-properties is also empty for such address books (which
follows because it passes through the value of always-writeable-properties).
No other backends need modifying for this, since no others have a concept
of “read only” except libsocialweb, which already has empty
writeable-properties properties.
Closes: bgo#658331
Bugs fixed:
* Bug 658631 — crash at empathy startup
+* Bug 658331 — Ensure read-only PersonaStores have empty writeable-properties
Overview of changes from libfolks 0.6.2 to libfolks 0.6.2.1
===========================================================
}
private string[] _always_writeable_properties = {};
+ private static string[] _always_writeable_properties_empty = {}; /* oh Vala */
/**
* {@inheritDoc}
*/
public override string[] always_writeable_properties
{
- get { return this._always_writeable_properties; }
+ get
+ {
+ if (this._addressbook.readonly == true)
+ {
+ return this._always_writeable_properties_empty;
+ }
+
+ return this._always_writeable_properties;
+ }
}
/*