Show
Ignore:
Timestamp:
06/11/08 08:25:24 (5 months ago)
Author:
eugene
Message:

Applied the latest version of flynd's qt4-gui patch.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/qt4-gui_group/src/core/systemmenu.cpp

    r6152 r6259  
    302302      delete a; 
    303303 
    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) 
    306305  { 
    307     QString name = QString::fromLocal8Bit((*g)[i]); 
     306    QString name = QString::fromLocal8Bit(pGroup->name().c_str()); 
    308307 
    309308    a = myUserGroupActions->addAction(name); 
    310     a->setData(i + 1); 
     309    a->setData(pGroup->id()); 
    311310    a->setCheckable(true); 
    312311 
    313312    myGroupMenu->insertAction(myGroupSeparator, a); 
    314313  } 
    315   gUserManager.UnlockGroupList(); 
     314  FOR_EACH_GROUP_END 
    316315} 
    317316