It might be better to have a QSet<QString> for modifications, and then lookup the final state of the contacts during sync from m_remoteServerContacts.