Changeset 6283 for trunk/qt4-gui/src/core/licqgui.cpp
- Timestamp:
- 06/14/08 03:47:03 (6 months ago)
- Files:
-
- 1 modified
-
trunk/qt4-gui/src/core/licqgui.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/core/licqgui.cpp
r6249 r6283 754 754 if (u == NULL) 755 755 return true; 756 GroupList* g = gUserManager.LockGroupList(LOCK_R); 756 LicqGroup* g = gUserManager.FetchGroup(group, LOCK_R); 757 if (g == NULL) 758 { 759 gUserManager.DropUser(u); 760 return true; 761 } 757 762 QString warning(tr("Are you sure you want to remove\n%1 (%2)\nfrom the '%3' group?") 758 763 .arg(QString::fromUtf8(u->GetAlias())) 759 .arg(u->IdString()).arg(QString::fromLocal8Bit( (*g)[group - 1])));760 gUserManager. UnlockGroupList();764 .arg(u->IdString()).arg(QString::fromLocal8Bit(g->name().c_str()))); 765 gUserManager.DropGroup(g); 761 766 gUserManager.DropUser(u); 762 767 if (QueryYesNo(parent, warning)) 763 768 { 764 769 gUserManager.RemoveUserFromGroup(id.toLatin1(), ppid, group); 765 766 // The daemon does not send an update when group membership changes767 // so tell the contactList it needs to update768 myContactList->updateUser(id, ppid);769 770 return true; 770 771 }
