mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Bugfix for removing actions from runloop
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6045 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fb65f2b8b6
commit
f80442c11b
4 changed files with 10 additions and 4 deletions
|
@ -321,7 +321,7 @@ static NSComparisonResult aSort(GSIArrayItem i0, GSIArrayItem i1)
|
|||
{
|
||||
GSTimedPerformer *p = array[count];
|
||||
|
||||
if (p->selector == aSelector && p->target == target
|
||||
if (p->target == target && sel_eq(p->selector, aSelector)
|
||||
&& [p->argument isEqual: arg])
|
||||
{
|
||||
[perf removeObjectAtIndex: count];
|
||||
|
@ -1363,7 +1363,7 @@ id NSDefaultRunLoopMode = @"NSDefaultRunLoopMode";
|
|||
GSRunLoopPerformer *p;
|
||||
|
||||
p = GSIArrayItemAtIndex(performers, count).obj;
|
||||
if (p->selector == aSelector && p->target == target
|
||||
if (p->target == target && sel_eq(p->selector, aSelector)
|
||||
&& p->argument == argument)
|
||||
{
|
||||
GSIArrayRemoveItemAtIndex(performers, count);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue