--- a/qtmobility/plugins/contacts/symbian/src/filtering/cntsymbianfilterdbms.cpp Fri Jun 11 14:26:25 2010 +0300
+++ b/qtmobility/plugins/contacts/symbian/src/filtering/cntsymbianfilterdbms.cpp Wed Jun 23 19:08:38 2010 +0300
@@ -148,6 +148,11 @@
}
// The resulting filter is handled with a recursive function call
result = contacts(intersectionFilter, sortOrders, filterSupportedFlag, error);
+ } else if (filter == QContactFilter()) {
+ // Empty filter -> don't do any filtering and tell the caller to not
+ // to do any filtering either
+ filterSupportedFlag = true;
+ result = filterContacts(QContactInvalidFilter(), error);
} else {
FilterSupport filterSupport = filterSupportLevel(filter);
if (filterSupport == Supported) {
@@ -283,7 +288,6 @@
}
// display label, this is a special case that contains several name
// fields and company name
- //TODO: "unnamed" display label is not supported currently
} else if (defName == QContactDisplayLabel::DefinitionName) {
if (matchFlags == QContactFilter::MatchStartsWith) {