# HG changeset patch # User John Kern # Date 1282753012 25200 # Node ID 6dfc2ca6334b10c863c27b671676a22db4c595fa # Parent 1ced6e446fd45f95577bd5ded54af9dbf2406d72 simiplified rowCount based on a suggest from Pat diff -r 1ced6e446fd4 -r 6dfc2ca6334b 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 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()