Details
-
Bug
-
Resolution: Done
-
P2: Important
-
None
-
1.2.0
-
None
-
MeeGo
-
868d1b4070414582c5f97a713150059d94b1241f
Description
QContactManagerEngine::CompareVariant() is used by QContactManagerEngine::testFilter() to do variant comparison when the MatchExactly flag is used.
The issue is that QContactManagerEngine::CompareVariant() does not support comparison of QVariant::Url type and will return 0 (which is considered as a "match" by QContactManagerEngine::testFilter().
As a consequence, making the following filter would match ALL contacts (if testFilter() is used):
—
QContactDetailFilter filter;
filter.setDetailDefinitionName(QContactUrl::DefinitionName, QContactUrl::FieldUrl);
filter.setMatchFlags(QContactFilter::MatchExactly);
filter.setValue("http://mydummyurl.fi");
ret = manager->contacts(filter);
—