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/settings/events.cpp

    r6149 r6374  
    327327  oem->Unlock(); 
    328328  //TODO make general for all plugins 
    329   ICQOwner* o = gUserManager.FetchOwner(LOCK_R); 
     329  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    330330  if (o != NULL) 
    331331  { 
     
    334334    myOnEventOccupiedCheck->setChecked(o->AcceptInOccupied()); 
    335335    myOnEventDndCheck->setChecked(o->AcceptInDND()); 
    336     gUserManager.DropOwner(); 
     336    gUserManager.DropOwner(o); 
    337337  } 
    338338  myAlwaysOnlineNotifyCheck->setChecked(gLicqDaemon->AlwaysOnlineNotify()); 
     
    393393  oem->SetParameters(txtSndPlayer.toLatin1(), oemparams); 
    394394  //TODO Make general for all plugins 
    395   ICQOwner* o = gUserManager.FetchOwner(LOCK_W); 
     395  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_W); 
    396396  if (o) 
    397397  { 
     
    403403    o->SetEnableSave(true); 
    404404    o->SaveLicqInfo(); 
    405     gUserManager.DropOwner(); 
     405    gUserManager.DropOwner(o); 
    406406  } 
    407407  gLicqDaemon->SetAlwaysOnlineNotify(myAlwaysOnlineNotifyCheck->isChecked());