Show
Ignore:
Timestamp:
06/11/08 08:25:24 (6 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/usermenu.cpp

    r6097 r6259  
    204204    delete a; 
    205205 
    206   GroupList* g = gUserManager.LockGroupList(LOCK_R); 
    207   for (unsigned int i = 0; i < g->size(); ++i) 
    208   { 
    209     QString name = QString::fromLocal8Bit((*g)[i]); 
     206  FOR_EACH_GROUP_START_SORTED(LOCK_R) 
     207  { 
     208    QString name = QString::fromLocal8Bit(pGroup->name().c_str()); 
    210209 
    211210    a = myUserGroupActions->addAction(name); 
    212     a->setData(i + 1); 
     211    a->setData(pGroup->id()); 
    213212    a->setCheckable(true); 
    214213 
    215214    a = myServerGroupActions->addAction(name); 
    216     a->setData(i + 1); 
     215    a->setData(pGroup->id()); 
    217216    a->setCheckable(true); 
    218217  } 
    219   gUserManager.UnlockGroupList(); 
     218  FOR_EACH_GROUP_END 
    220219 
    221220  // Add groups to menu