Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[buteo-sync-plugins] Make Bluetooth synced contacts modifiable
This commit ensures that contacts synced from Bluetooth devices
are marked as modifiable on the local device, as it is assumed
that the data is all owned by the user rather than a remote
service.
  • Loading branch information
Chris Adams committed Feb 16, 2015
1 parent fe8c45f commit 7e82f64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions storageplugins/hcontacts/ContactsBackend.cpp
Expand Up @@ -417,6 +417,10 @@ void ContactsBackend::prepareContactSave(QList<QContact> *contactList)
originMetaData.setId(iOriginId);
contact->saveDetail(&originMetaData);
}
Q_FOREACH (QContactDetail det, contact->details()) {
det.setValue(QContactDetail__FieldModifiable, true);
contact->saveDetail(&det);
}
}
}
}
Expand Down

0 comments on commit 7e82f64

Please sign in to comment.