Changeset 6259 for branches/qt4-gui_group/src/core/systemmenu.cpp
- Timestamp:
- 06/11/08 08:25:24 (5 months ago)
- Files:
-
- 1 modified
-
branches/qt4-gui_group/src/core/systemmenu.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/qt4-gui_group/src/core/systemmenu.cpp
r6152 r6259 302 302 delete a; 303 303 304 GroupList* g = gUserManager.LockGroupList(LOCK_R); 305 for (unsigned int i = 0; i < g->size(); ++i) 304 FOR_EACH_GROUP_START_SORTED(LOCK_R) 306 305 { 307 QString name = QString::fromLocal8Bit( (*g)[i]);306 QString name = QString::fromLocal8Bit(pGroup->name().c_str()); 308 307 309 308 a = myUserGroupActions->addAction(name); 310 a->setData( i + 1);309 a->setData(pGroup->id()); 311 310 a->setCheckable(true); 312 311 313 312 myGroupMenu->insertAction(myGroupSeparator, a); 314 313 } 315 gUserManager.UnlockGroupList();314 FOR_EACH_GROUP_END 316 315 } 317 316
