mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
bug fixes from electron.
- fix for participating list. (list iteration was broken) - fix for search limit parameter. (make optional) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6626 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
43fecc2307
commit
2bdc85705e
@ -1292,13 +1292,13 @@ bool fillLobbyInfoFromChatLobbyInfo(const ChatLobbyInfo &cli, rsctrl::chat::Chat
|
||||
lobby->set_last_activity(cli.last_activity);
|
||||
|
||||
std::set<std::string>::const_iterator pit;
|
||||
for(pit = cli.participating_friends.begin(); pit != cli.participating_friends.begin(); pit++)
|
||||
for(pit = cli.participating_friends.begin(); pit != cli.participating_friends.end(); pit++)
|
||||
{
|
||||
lobby->add_participating_friends(*pit);
|
||||
}
|
||||
|
||||
std::map<std::string, time_t>::const_iterator mit;
|
||||
for(mit = cli.nick_names.begin(); mit != cli.nick_names.begin(); mit++)
|
||||
for(mit = cli.nick_names.begin(); mit != cli.nick_names.end(); mit++)
|
||||
{
|
||||
lobby->add_nicknames(mit->first);
|
||||
}
|
||||
|
@ -634,7 +634,7 @@ bool condenseSearchResults(const std::list<TurtleFileInfo> &searchResults, uint3
|
||||
}
|
||||
|
||||
unsigned int i = 0;
|
||||
for(mit = searchMap.begin(); (mit != searchMap.end()) && (i < limit); mit++, i++)
|
||||
for(mit = searchMap.begin(); (mit != searchMap.end()) && (i < limit || limit == 0); mit++, i++)
|
||||
{
|
||||
std::map<std::string, uint32_t>::reverse_iterator nit;
|
||||
nit = mit->second.name_map.rbegin();
|
||||
|
Loading…
Reference in New Issue
Block a user