Show
Ignore:
Timestamp:
06/14/08 03:47:03 (6 months ago)
Author:
flynd
Message:

Updated to work with and take advantage of new group handling. Contact list model is now properly updated from signals when groups change.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/core/systemmenu.cpp

    r6152 r6283  
    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