Changeset 6429

Show
Ignore:
Timestamp:
07/05/08 22:51:39 (8 weeks ago)
Author:
eugene
Message:

Replaced gLicqDaemon->AddUserToList? with creation of AddUserDlg?, which is capable to assign a group.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt4-gui/src/userevents/userviewevent.cpp

    r6406 r6429  
    5252#include "core/signalmanager.h" 
    5353 
     54#include "dialogs/adduserdlg.h" 
    5455#include "dialogs/authuserdlg.h" 
    5556#include "dialogs/chatdlg.h" 
     
    333334    { 
    334335      CEventAuthGranted* p = dynamic_cast<CEventAuthGranted*>(myCurrentEvent); 
    335       gLicqDaemon->AddUserToList(p->IdString(), p->PPID()); 
     336      new AddUserDlg(p->IdString(), p->PPID(), this); 
    336337      break; 
    337338    } 
     
    340341    { 
    341342      CEventAdded* p = dynamic_cast<CEventAdded*>(myCurrentEvent); 
    342       gLicqDaemon->AddUserToList(p->IdString(), p->PPID()); 
     343      new AddUserDlg(p->IdString(), p->PPID(), this); 
    343344      break; 
    344345    } 
     
    351352      for (it = cl.begin(); it != cl.end(); ++it) 
    352353      { 
    353         ICQUser* u = gUserManager.FetchUser((*it)->IdString(), (*it)->PPID(), LOCK_R); 
    354         if (u == NULL) 
    355         { 
    356           gLicqDaemon->AddUserToList((*it)->IdString(), (*it)->PPID()); 
    357           continue; 
    358         } 
    359         gUserManager.DropUser(u); 
     354        new AddUserDlg((*it)->IdString(), (*it)->PPID(), this); 
    360355      } 
    361356 
     
    536531    { 
    537532      CEventAuthRequest* p = dynamic_cast<CEventAuthRequest*>(myCurrentEvent); 
    538       gLicqDaemon->AddUserToList(p->IdString(), p->PPID()); 
     533      new AddUserDlg(p->IdString(), p->PPID(), this); 
    539534      break; 
    540535    }