summaryrefslogtreecommitdiff
path: root/src/contacts-linking.vala
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2012-06-26 23:12:11 +0200
committerAlexander Larsson <alexl@redhat.com>2012-06-28 09:52:09 +0200
commitd891e08ff4e6eaae70012b44cf121a6bb7641ce3 (patch)
treee686262f387290b1e78247ff436f7950cd1bcf7f /src/contacts-linking.vala
parent93c9ae6f2e389c6cd0a13b637177c5bcde8261ef (diff)
downloadgnome-contacts-d891e08ff4e6eaae70012b44cf121a6bb7641ce3.tar.gz
contacts: Pass store as parameter to create_primary_persona_from_store
Contact currently references App in a couple of places, which means the class depends on pretty much any other class. In order to reuse the Contact class in the shell search provider (which will be a separate executable), reduce the Contact class' dependencies. https://bugzilla.gnome.org/show_bug.cgi?id=679002
Diffstat (limited to 'src/contacts-linking.vala')
-rw-r--r--src/contacts-linking.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/contacts-linking.vala b/src/contacts-linking.vala
index e2bf76b..1f2ce09 100644
--- a/src/contacts-linking.vala
+++ b/src/contacts-linking.vala
@@ -584,7 +584,7 @@ namespace Contacts {
var v = Value (typeof (string));
v.set_string (main.display_name);
details.set ("full-name", v);
- write_persona = yield Contact.create_primary_persona_for_details (details);
+ write_persona = yield Contact.create_primary_persona_for_details (App.app.contacts_store.aggregator.primary_store, details);
operation.added_persona (write_persona);
linkables = main_linkables;
if (other_linkables != null)