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

    r6367 r6381  
    458458   oem->Unlock(); 
    459459   //TODO make general for all plugins 
    460    ICQOwner *o = gUserManager.FetchOwner(LOCK_R); 
     460   ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    461461   if (o) 
    462462   { 
     
    465465     chkOEOccupied->setChecked(o->AcceptInOccupied()); 
    466466     chkOEDND->setChecked(o->AcceptInDND()); 
    467      gUserManager.DropOwner(); 
     467     gUserManager.DropOwner(o); 
    468468   } 
    469469   chkAlwaysOnlineNotify->setChecked(mainwin->licqDaemon->AlwaysOnlineNotify()); 
     
    722722  oem->SetParameters(txtSndPlayer.latin1(), oemparams); 
    723723  //TODO Make general for all plugins 
    724   ICQOwner *o = gUserManager.FetchOwner(LOCK_W); 
     724  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_W); 
    725725  if (o) 
    726726  { 
     
    732732    o->SetEnableSave(true); 
    733733    o->SaveLicqInfo(); 
    734     gUserManager.DropOwner(); 
     734    gUserManager.DropOwner(o); 
    735735  } 
    736736  mainwin->licqDaemon->SetAlwaysOnlineNotify(chkAlwaysOnlineNotify->isChecked());