simiplified rowCount based on a suggest from Pat
authorJohn Kern <johnk@symbian.org>
Wed, 25 Aug 2010 09:16:52 -0700
changeset 38 6dfc2ca6334b
parent 37 1ced6e446fd4
child 39 3ed811ba9e2e
simiplified rowCount based on a suggest from Pat
contactengine/contactsengine.cpp
--- 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()