--- a/contactengine/contactsengine.cpp Mon Aug 23 17:07:32 2010 +0100
+++ b/contactengine/contactsengine.cpp Wed Aug 25 09:16:52 2010 -0700
@@ -352,16 +352,7 @@
int ContactsEngine::rowCount(const QModelIndex &parent) const
{
- QList<QContact> allContacts;
- int rc = 0;
- if (this->m_manager)
- {
- allContacts = this->m_manager->contacts();
- // return stringList.count();
- if (!allContacts.isEmpty())
- rc = allContacts.count();
- }
- return rc;
+ return this->m_manager->contacts().count();
}
void ContactsEngine::enumerateMgrs()