summaryrefslogtreecommitdiff
path: root/src/contacts-contact-sheet.vala
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2017-12-24 01:50:14 +0100
committerNiels De Graef <nielsdegraef@gmail.com>2017-12-24 01:50:14 +0100
commit5efeaea38664b9c3e99ae26baa3c00a04b3eb2dc (patch)
tree0d5178236c3ad5dbeb258685792f143f53787430 /src/contacts-contact-sheet.vala
parent035b76b2a9594fa6759d9e06625e78a4bdbb1f10 (diff)
downloadgnome-contacts-5efeaea38664b9c3e99ae26baa3c00a04b3eb2dc.tar.gz
ContactStore: only store 1 calling account.
Telepathy is on it's way out, and really, the end-result of this code still does exactly the same thing.
Diffstat (limited to 'src/contacts-contact-sheet.vala')
-rw-r--r--src/contacts-contact-sheet.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/contacts-contact-sheet.vala b/src/contacts-contact-sheet.vala
index e0243f2..6b96794 100644
--- a/src/contacts-contact-sheet.vala
+++ b/src/contacts-contact-sheet.vala
@@ -152,10 +152,10 @@ public class Contacts.ContactSheet : Grid {
if (phone_details != null) {
var phones = Contact.sort_fields<PhoneFieldDetails>(phone_details.phone_numbers);
foreach (var phone in phones) {
- if (c.store != null && c.store.can_call) {
+ if (c.store != null && c.store.caller_account != null) {
var button = add_row_with_button (ref i, TypeSet.phone.format_type (phone), phone.value);
button.clicked.connect (() => {
- Utils.start_call (phone.value, c.store.calling_accounts);
+ Utils.start_call (phone.value, c.store.caller_account);
});
} else {
add_row_with_label (ref i, TypeSet.phone.format_type (phone), phone.value);