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

    r5514 r6381  
    219219{ 
    220220  QPixmap m; 
    221   ICQOwner *o = gUserManager.FetchOwner(LOCK_R); 
     221  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    222222  if (o == 0) return; 
    223223  switch (o->Status()) 
     
    232232  } 
    233233  if (o->StatusInvisible()) m = QPixmap((const char **)iconInvisible_xpm); 
    234   gUserManager.DropOwner(); 
     234  gUserManager.DropOwner(o); 
    235235  QPainter painter(wharfIcon->vis); 
    236236  if (!m_bFortyEight) 
     
    264264QPixmap *IconManager_Default::GetDockIconStatusIcon() 
    265265{ 
    266   ICQOwner *o = gUserManager.FetchOwner(LOCK_R); 
     266  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    267267  if (o == 0) return NULL; 
    268    
     268 
    269269  unsigned long s = o->Status(); 
    270   gUserManager.DropOwner(); 
     270  gUserManager.DropOwner(o); 
    271271  switch (s) 
    272272  { 
     
    548548{ 
    549549  QPixmap *p = NULL; 
    550   ICQOwner *o = gUserManager.FetchOwner(LOCK_R); 
     550  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    551551  if (o == 0) return; 
    552552  switch (o->Status()) 
     
    561561  } 
    562562  if (o->StatusInvisible()) p = pixInvisible; 
    563   gUserManager.DropOwner(); 
     563  gUserManager.DropOwner(o); 
    564564  if (p != NULL) 
    565565  { 
     
    667667{ 
    668668  //TODO make general for all plugins 
    669   ICQOwner *o = gUserManager.FetchOwner(LOCK_R); 
     669  ICQOwner* o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
    670670  if (o == 0) return; 
    671671  m_statusIcon = CMainWindow::iconForStatus(o->StatusFull()); 
    672672  m_ownerStatus = o->Status(); 
    673673  m_bStatusInvisible = o->StatusInvisible(); 
    674   gUserManager.DropOwner(); 
     674  gUserManager.DropOwner(o); 
    675675 
    676676  updateTooltip();