diff options
Diffstat (limited to 'src/Common/UserLists/Util.cpp')
-rw-r--r-- | src/Common/UserLists/Util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/UserLists/Util.cpp b/src/Common/UserLists/Util.cpp index 812c2c7..3c15956 100644 --- a/src/Common/UserLists/Util.cpp +++ b/src/Common/UserLists/Util.cpp @@ -39,7 +39,7 @@ UserListEntry Util::deserializeUserListEntry(XmlData::List::const_iterator entry std::set<std::string> details = entry->getChildren(); for(std::set<std::string>::iterator detail = details.begin(); detail != details.end(); ++detail) { - if(*detail == "user" || *detail == "group") + if(*detail == "name" || *detail == "group") continue; user.setDetail(*detail, entry->get<const std::string&>(*detail)); @@ -62,7 +62,7 @@ boost::shared_ptr<UserList> Util::deserializeUserList(const XmlData *data) { if(userList) { for(XmlData::List::const_iterator user = userList->begin(); user != userList->end(); ++user) - users->push_back(deserializeUserListEntry(user)); + users->addUser(deserializeUserListEntry(user)); } return users; |