From 9860715086b4f70635b0928235cd2533275a0db0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Tue, 25 Jul 2017 10:44:52 -0400 Subject: [PATCH] personmodel: fix incorrect warning message PeerProfileCollection's name is "Peer profiles" not "ppc" Change-Id: I3ad0f400c01b404161f87df6f7288baadd4c4ce8 Reviewed-by: Philippe Gorley <philippe.gorley@savoirfairelinux.com> --- src/personmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/personmodel.cpp b/src/personmodel.cpp index 8bd3fb6a..9c4f91ad 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"; } -- GitLab