diff --git a/retroshare-gui/src/gui/msgs/MessageComposer.cpp b/retroshare-gui/src/gui/msgs/MessageComposer.cpp index 232a20534..1155e5774 100644 --- a/retroshare-gui/src/gui/msgs/MessageComposer.cpp +++ b/retroshare-gui/src/gui/msgs/MessageComposer.cpp @@ -2348,23 +2348,15 @@ void MessageComposer::fileHashingFinished(QList hashedFiles) void MessageComposer::addContact(enumType type) { - // std::list ids; - // ui.friendSelectionWidget->selectedIds(ids,false); - // - // std::list::iterator idIt; - // for (idIt = ids.begin(); idIt != ids.end(); ++idIt) { - // addRecipient(type, *idIt, true); - // } + std::list peerIds ; + ui.friendSelectionWidget->selectedIds(peerIds, false); - std::list ids ; - ui.friendSelectionWidget->selectedIds(ids, true); - for (std::list::const_iterator idIt = ids.begin(); idIt != ids.end(); ++idIt) { - addRecipient(type, *idIt); - } + for (std::list::const_iterator idIt = peerIds.begin(); idIt != peerIds.end(); ++idIt) + addRecipient(type, *idIt); - std::list id2 ; - ui.friendSelectionWidget->selectedIds(id2, true); - for (std::list::const_iterator idIt = id2.begin(); idIt != id2.end(); ++idIt) + std::list gxsIds ; + ui.friendSelectionWidget->selectedIds(gxsIds, false); + for (std::list::const_iterator idIt = gxsIds.begin(); idIt != gxsIds.end(); ++idIt) addRecipient(type, *idIt); }