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

    r4699 r6381  
    4545  : QDialog(parent, "EditPhoneDlg", true, WDestructiveClose) 
    4646{ 
    47   ICQOwner* o = gUserManager.FetchOwner(LOCK_R); 
     47  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    4848  if (o == NULL) 
    4949  { 
     
    5252  } 
    5353  QTextCodec *codec = UserCodec::codecForICQUser(o); 
    54   gUserManager.DropOwner(); 
     54  gUserManager.DropOwner(o); 
    5555 
    5656  m_nEntry = nEntry; 
     
    230230  } 
    231231 
    232   ICQOwner* o = gUserManager.FetchOwner(LOCK_R); 
     232  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    233233  if (o == NULL) 
    234234  { 
     
    237237  } 
    238238  QTextCodec *codec = UserCodec::codecForICQUser(o); 
    239   gUserManager.DropOwner(); 
     239  gUserManager.DropOwner(o); 
    240240 
    241241  struct PhoneBookEntry pbe;