Changeset 6378 for trunk/osd

Show
Ignore:
Timestamp:
07/01/08 06:43:26 (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/osd/src/licq-osd.cpp

    r6234 r6378  
    452452            if (want_osd) 
    453453        { 
    454         o=gUserManager.FetchOwner(LOCK_R); 
    455         if (o) 
    456         { 
     454        o = gUserManager.FetchOwner(LICQ_PPID, LOCK_R); 
     455        if (o != NULL) 
     456        { 
    457457            status=o->Status(); 
    458458            //want_osd=true; 
     
    494494            } 
    495495 
    496             gUserManager.DropOwner(); 
    497         } 
     496          gUserManager.DropOwner(o); 
     497        } 
    498498        } 
    499499 
     
    553553        if (ignore) 
    554554        want_osd=false; 
    555         if (s->Uin() == gUserManager.OwnerUin()) // no messages for our own actions 
     555        if (gUserManager.FindOwner(s->Id(), s->PPID()) != NULL) // no messages for our own actions 
    556556                want_osd=false; 
    557557