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/licqgui.cpp

    r6249 r6259  
    754754      if (u == NULL) 
    755755        return true; 
    756       GroupList* g = gUserManager.LockGroupList(LOCK_R); 
     756      LicqGroup* g = gUserManager.FetchGroup(group, LOCK_R); 
     757      if (g == NULL) 
     758      { 
     759        gUserManager.DropUser(u); 
     760        return true; 
     761      } 
    757762      QString warning(tr("Are you sure you want to remove\n%1 (%2)\nfrom the '%3' group?") 
    758763          .arg(QString::fromUtf8(u->GetAlias())) 
    759           .arg(u->IdString()).arg(QString::fromLocal8Bit((*g)[group - 1]))); 
    760       gUserManager.UnlockGroupList(); 
     764          .arg(u->IdString()).arg(QString::fromLocal8Bit(g->name().c_str()))); 
     765      gUserManager.DropGroup(g); 
    761766      gUserManager.DropUser(u); 
    762767      if (QueryYesNo(parent, warning)) 
    763768      { 
    764769        gUserManager.RemoveUserFromGroup(id.toLatin1(), ppid, group); 
    765  
    766         // The daemon does not send an update when group membership changes 
    767         // so tell the contactList it needs to update 
    768         myContactList->updateUser(id, ppid); 
    769770        return true; 
    770771      }