From f27919a0b1c36c568a0a7d4480e3a37e3f6e67af Mon Sep 17 00:00:00 2001 From: eilers Date: Thu, 14 Nov 2002 17:04:24 +0000 Subject: Sorting will now work if fullname is identical on some entries --- diff --git a/libopie/pim/ocontactaccessbackend_xml.h b/libopie/pim/ocontactaccessbackend_xml.h index adc8dc3..ae6ec9e 100644 --- a/libopie/pim/ocontactaccessbackend_xml.h +++ b/libopie/pim/ocontactaccessbackend_xml.h @@ -17,6 +17,9 @@ * ===================================================================== * History: * $Log$ + * Revision 1.8 2002/11/14 17:04:24 eilers + * Sorting will now work if fullname is identical on some entries + * * Revision 1.7 2002/11/13 15:02:46 eilers * Small Bug in sorted fixed * @@ -319,8 +322,8 @@ class OContactAccessBackend_XML : public OContactAccessBackend { // 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).fileAs() ); - nameToUid.insert( (*it).fileAs(), (*it).uid() ); + names.append( (*it).fileAs() + QString::number( (*it).uid() ) ); + nameToUid.insert( (*it).fileAs() + QString::number( (*it).uid() ), (*it).uid() ); } names.sort(); diff --git a/libopie2/opiepim/backend/ocontactaccessbackend_xml.h b/libopie2/opiepim/backend/ocontactaccessbackend_xml.h index adc8dc3..ae6ec9e 100644 --- a/libopie2/opiepim/backend/ocontactaccessbackend_xml.h +++ b/libopie2/opiepim/backend/ocontactaccessbackend_xml.h @@ -17,6 +17,9 @@ * ===================================================================== * History: * $Log$ + * Revision 1.8 2002/11/14 17:04:24 eilers + * Sorting will now work if fullname is identical on some entries + * * Revision 1.7 2002/11/13 15:02:46 eilers * Small Bug in sorted fixed * @@ -319,8 +322,8 @@ class OContactAccessBackend_XML : public OContactAccessBackend { // 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).fileAs() ); - nameToUid.insert( (*it).fileAs(), (*it).uid() ); + names.append( (*it).fileAs() + QString::number( (*it).uid() ) ); + nameToUid.insert( (*it).fileAs() + QString::number( (*it).uid() ), (*it).uid() ); } names.sort(); -- cgit v0.9.0.2