diff --git a/src/personmodel.cpp b/src/personmodel.cpp index 8bd3fb6a9f14cfc401ad0c36f5758e70ca47af57..9c4f91adcf42e2f61b2b63d01280f5774f3722cd 100644 --- a/src/personmodel.cpp +++ b/src/personmodel.cpp @@ -350,7 +350,7 @@ bool PersonModel::addPeerProfile(Person* person) // check if this person is saved in the PeerProfileCollection, "ppc" if (person->collection() != &TransitionalPersonBackend::instance() and - person->collection()->name() != "ppc") + person->collection()->id() != "ppc") { qWarning() << "About to add Person to the PeerProfileCollection which is part of another collection"; }