-rw-r--r-- | libopie/pim/ocontactaccessbackend_xml.h | 9 | ||||
-rw-r--r-- | libopie2/opiepim/backend/ocontactaccessbackend_xml.h | 9 |
2 files changed, 12 insertions, 6 deletions
diff --git a/libopie/pim/ocontactaccessbackend_xml.h b/libopie/pim/ocontactaccessbackend_xml.h index 8b95102..adc8dc3 100644 --- a/libopie/pim/ocontactaccessbackend_xml.h +++ b/libopie/pim/ocontactaccessbackend_xml.h @@ -16,8 +16,11 @@ * Version: $Id$ * ===================================================================== * History: * $Log$ + * Revision 1.7 2002/11/13 15:02:46 eilers + * Small Bug in sorted fixed + * * Revision 1.6 2002/11/13 14:14:51 eilers * Added sorted for Contacts.. * * Revision 1.5 2002/11/01 15:10:42 eilers @@ -311,14 +314,14 @@ class OContactAccessBackend_XML : public OContactAccessBackend { QMap<QString, int> nameToUid; QStringList names; QArray<int> m_currentQuery( m_contactList.count() ); - // First fill map and StringList with all Names ( better LastNames ? ) + // First fill map and StringList with all Names // Afterwards sort namelist and use map to fill array to return.. QValueListConstIterator<OContact> it; for( it = m_contactList.begin(); it != m_contactList.end(); ++it ){ - names.append( (*it).lastName() ); - nameToUid.insert( (*it).lastName(), (*it).uid() ); + names.append( (*it).fileAs() ); + nameToUid.insert( (*it).fileAs(), (*it).uid() ); } names.sort(); int i = 0; diff --git a/libopie2/opiepim/backend/ocontactaccessbackend_xml.h b/libopie2/opiepim/backend/ocontactaccessbackend_xml.h index 8b95102..adc8dc3 100644 --- a/libopie2/opiepim/backend/ocontactaccessbackend_xml.h +++ b/libopie2/opiepim/backend/ocontactaccessbackend_xml.h @@ -16,8 +16,11 @@ * Version: $Id$ * ===================================================================== * History: * $Log$ + * Revision 1.7 2002/11/13 15:02:46 eilers + * Small Bug in sorted fixed + * * Revision 1.6 2002/11/13 14:14:51 eilers * Added sorted for Contacts.. * * Revision 1.5 2002/11/01 15:10:42 eilers @@ -311,14 +314,14 @@ class OContactAccessBackend_XML : public OContactAccessBackend { QMap<QString, int> nameToUid; QStringList names; QArray<int> m_currentQuery( m_contactList.count() ); - // First fill map and StringList with all Names ( better LastNames ? ) + // First fill map and StringList with all Names // Afterwards sort namelist and use map to fill array to return.. QValueListConstIterator<OContact> it; for( it = m_contactList.begin(); it != m_contactList.end(); ++it ){ - names.append( (*it).lastName() ); - nameToUid.insert( (*it).lastName(), (*it).uid() ); + names.append( (*it).fileAs() ); + nameToUid.insert( (*it).fileAs(), (*it).uid() ); } names.sort(); int i = 0; |