Show
Ignore:
Timestamp:
07/01/08 17:03:38 (5 months ago)
Author:
flynd
Message:

Use the new DropOwner? function to properly specify which owner to unlock.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/qt-gui/src/userselectdlg.cpp

    r6305 r6381  
    8282 
    8383    // For now, just have one owner 
    84     ICQOwner *o = gUserManager.FetchOwner(LOCK_R); 
     84  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    8585  if (o == 0) 
    8686  { 
     
    9090    cmbUser->insertItem(QString("%1 (%2)").arg(o->GetAlias()).arg(o->IdString())); 
    9191    edtPassword->setText(o->Password()); 
    92     gUserManager.DropOwner(); 
     92  gUserManager.DropOwner(o); 
    9393 
    9494        exec(); // this is different from show(), exec() does not return  
     
    102102void UserSelectDlg::slot_ok() 
    103103{ 
    104   ICQOwner *o = gUserManager.FetchOwner(LOCK_W); 
     104  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_W); 
    105105  if (o == 0) 
    106106  { 
     
    110110  o->SetSavePassword(chkSavePassword->isChecked()); 
    111111  o->SetPassword(edtPassword->text().latin1()); 
    112   gUserManager.DropOwner(); 
     112  gUserManager.DropOwner(o); 
    113113 
    114114  close();