Changeset 6454 for trunk/qt4-gui/src
- Timestamp:
- 07/20/08 17:08:55 (4 months ago)
- Files:
-
- 1 modified
-
trunk/qt4-gui/src/core/usermenu.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt4-gui/src/core/usermenu.cpp
r6453 r6454 327 327 { 328 328 unsigned short gid = a->data().toUInt(); 329 a->setChecked(u->GetInGroup(GROUPS_USER, gid)); 330 a->setEnabled(gid != serverGroup); 329 bool inGroup = u->GetInGroup(GROUPS_USER, gid); 330 a->setChecked(inGroup); 331 332 // Don't allow leaving group if contact is member of the same group at the server side 333 a->setEnabled(!inGroup || gid != serverGroup); 331 334 } 332 335 foreach (QAction* a, mySystemGroupActions->actions())
