Show
Ignore:
Timestamp:
07/01/08 06:31:24 (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/qt4-gui/src/dialogs/userselectdlg.cpp

    r6352 r6374  
    8989 
    9090  // For now, just have one owner 
    91   ICQOwner* o = gUserManager.FetchOwner(LOCK_R); 
     91  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    9292  if (o == 0) 
    9393  { 
     
    9797  cmbUser->addItem(QString("%1 (%2)").arg(o->GetAlias()).arg(o->IdString())); 
    9898  edtPassword->setText(o->Password()); 
    99   gUserManager.DropOwner(); 
     99  gUserManager.DropOwner(o); 
    100100 
    101101  // Wait for dialog to finish before returning to caller 
     
    109109void UserSelectDlg::slot_ok() 
    110110{ 
    111   ICQOwner* o = gUserManager.FetchOwner(LOCK_W); 
     111  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_W); 
    112112  if (o == 0) 
    113113  { 
     
    117117  o->SetSavePassword(chkSavePassword->isChecked()); 
    118118  o->SetPassword(edtPassword->text().toLatin1()); 
    119   gUserManager.DropOwner(); 
     119  gUserManager.DropOwner(o); 
    120120 
    121121  close();