Changeset 6319 for trunk/qt4-gui/src/core/mainwin.cpp
- Timestamp:
- 06/17/08 02:19:46 (6 months ago)
- Files:
-
- 1 modified
-
trunk/qt4-gui/src/core/mainwin.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/core/mainwin.cpp
r6283 r6319 502 502 void MainWindow::removeUserFromGroup() 503 503 { 504 GroupType gtype = Config::ContactList::instance()->groupType(); 505 unsigned short gid = Config::ContactList::instance()->groupId(); 506 507 // Removing "All users" is the same as removing user from the list 508 if (gtype == GROUPS_SYSTEM && gid == 0) 509 { 510 removeUserFromList(); 511 return; 512 } 513 514 // Removing user from "Other users" is not allowed 515 if (gtype == GROUPS_USER && gid == 0) 516 return; 517 518 // Get currently selected user 504 519 QString id; 505 520 unsigned long ppid = 0; 506 521 myUserView->MainWindowSelectedItemUser(id, ppid); 507 522 508 LicqGui::instance()->removeUserFromGroup( 509 Config::ContactList::instance()->groupType(), 510 Config::ContactList::instance()->groupId(), 511 id, ppid, this); 523 gUserManager.SetUserInGroup(id.toLatin1(), ppid, GROUPS_USER, gid, false); 512 524 } 513 525 … … 728 740 void MainWindow::setCurrentGroup(int groupId) 729 741 { 742 //TODO: This is bugged 730 743 GroupType groupType = GROUPS_USER; 731 744 unsigned short nNumGroups = gUserManager.NumGroups();
