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

    r6367 r6381  
    152152  mnuSelect->insertItem(tr("&Edit Items"), 999); 
    153153 
    154   ICQOwner *o = gUserManager.FetchOwner(LOCK_R); 
     154  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    155155  if (o == 0) return; 
    156156  setCaption(QString(tr("Set %1 Response for %2")) 
     
    165165                           "(%m messages pending from you).") 
    166166                        .arg(Strings::getStatus(m_nStatus, false))); 
    167   gUserManager.DropOwner(); 
     167  gUserManager.DropOwner(o); 
    168168 
    169169  mleAwayMsg->setFocus(); 
     
    203203    s.truncate(s.length()-1); 
    204204 
    205   ICQOwner *o = gUserManager.FetchOwner(LOCK_W); 
     205  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_W); 
    206206  if (o == 0) 
    207207  { 
     
    211211  QTextCodec *codec = UserCodec::defaultEncoding(); 
    212212  o->SetAutoResponse(codec->fromUnicode(s)); 
    213   gUserManager.DropOwner(); 
     213  gUserManager.DropOwner(o); 
    214214  close(); 
    215215}