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

Updated to work with new group handling. I haven't tested this much but it compiles, starts and seems to work.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/console/src/console_print.cpp

    r6244 r6285  
    204204  waddch(winMain->Win(), '\n'); 
    205205 
    206   GroupList *g = gUserManager.LockGroupList(LOCK_R); 
    207   for (GroupList::iterator i = g->begin(); i != g->end(); i++, j++) 
     206  FOR_EACH_GROUP_START_SORTED(LOCK_R) 
    208207  { 
    209208    PrintBoxLeft(); 
    210209    winMain->wprintf("%A%C%3d. %-19s", 
    211210        m_cColorGroupList->nAttr, 
    212         m_cColorGroupList->nColor, j, *i); 
     211        m_cColorGroupList->nColor, j, pGroup->name().c_str()); 
    213212    PrintBoxRight(26); 
    214   } 
    215   gUserManager.UnlockGroupList(); 
     213    ++j; 
     214  } 
     215  FOR_EACH_GROUP_END 
    216216 
    217217  waddch(winMain->Win(), ACS_LTEE);