From 2bc05c54b2ff1a9b2af7d6bd4d55428cfe0d8db3 Mon Sep 17 00:00:00 2001 From: eilers Date: Wed, 13 Nov 2002 15:02:46 +0000 Subject: Small Bug in sorted fixed --- (limited to 'libopie/pim') 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 @@ -17,6 +17,9 @@ * ===================================================================== * 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.. * @@ -312,12 +315,12 @@ class OContactAccessBackend_XML : public OContactAccessBackend { QStringList names; QArray 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 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(); -- cgit v0.9.0.2