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

    r6352 r6374  
    166166  a->setData(999); 
    167167 
    168   ICQOwner* o = gUserManager.FetchOwner(LOCK_R); 
     168  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    169169  if (o == NULL) 
    170170    return; 
     
    182182          "(%m messages pending from you).") 
    183183        .arg(LicqStrings::getStatus(myStatus, false))); 
    184   gUserManager.DropOwner(); 
     184  gUserManager.DropOwner(o); 
    185185 
    186186  myAwayMsg->setFocus(); 
     
    252252  QString s = myAwayMsg->toPlainText().trimmed(); 
    253253 
    254   ICQOwner* o = gUserManager.FetchOwner(LOCK_W); 
     254  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_W); 
    255255  if (o != NULL) 
    256256  { 
    257257    QTextCodec* codec = UserCodec::defaultEncoding(); 
    258258    o->SetAutoResponse(codec->fromUnicode(s)); 
    259     gUserManager.DropOwner(); 
     259    gUserManager.DropOwner(o); 
    260260  } 
    261261