Changeset 6366 for trunk/qt-gui/src/usereventdlg.cpp
- Timestamp:
- 07/01/08 03:50:37 (5 months ago)
- Files:
-
- 1 modified
-
trunk/qt-gui/src/usereventdlg.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt-gui/src/usereventdlg.cpp
r6305 r6366 2191 2191 //TODO in CMMUserView 2192 2192 lstMultipleRecipients = new CMMUserView(mainwin->colInfo, mainwin->m_bShowHeader, 2193 strtoul(m_lUsers.front().c_str(), (char **)NULL, 10), mainwin, grpMR);2193 m_lUsers.front().c_str(), LICQ_PPID, mainwin, grpMR); 2194 2194 lstMultipleRecipients->setFixedWidth(mainwin->UserView()->width()); 2195 2195 } … … 2545 2545 CEventContactList* ue = (CEventContactList *) e->UserEvent(); 2546 2546 const ContactList& clist = ue->Contacts(); 2547 UinList uins; 2548 2547 UserStringList users; 2548 2549 // ContactList is const but string list holds "char*" so we have to copy each string 2549 2550 for(ContactList::const_iterator i = clist.begin(); i != clist.end(); i++) 2550 u ins.push_back((*i)->Uin());2551 2552 if(u ins.size() == 0)2551 users.push_back(strdup((*i)->IdString())); 2552 2553 if(users.size() == 0) 2553 2554 break; 2554 2555 2555 icqEventTag = server->icqSendContactList(strtoul(m_lUsers.front().c_str(), (char **)NULL, 10), 2556 uins, bOnline, nLevel, false, &icqColor); 2556 icqEventTag = server->icqSendContactList(m_lUsers.front().c_str(), 2557 users, bOnline, nLevel, false, &icqColor); 2558 2559 // Free the strings in the list 2560 for (UserStringList::iterator i = users.begin(); i != users.end(); ++i) 2561 free(*i); 2557 2562 2558 2563 break;
