contactengine/contactsengine.cpp
changeset 38 6dfc2ca6334b
parent 31 7140311376c0
child 40 edc0144719a1
--- 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()