mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Added 'insert' capabilities to cList (fix)
This commit is contained in:
parent
d4893ad1fe
commit
564403b4b1
5
tools.c
5
tools.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: tools.c 1.65 2002/05/13 16:32:12 kls Exp $
|
* $Id: tools.c 1.66 2002/05/13 17:56:17 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "tools.h"
|
#include "tools.h"
|
||||||
@ -788,9 +788,8 @@ void cListBase::Ins(cListObject *Object, cListObject *Before)
|
|||||||
if (objects)
|
if (objects)
|
||||||
objects->Insert(Object);
|
objects->Insert(Object);
|
||||||
else
|
else
|
||||||
objects = Object;
|
|
||||||
if (!lastObject)
|
|
||||||
lastObject = Object;
|
lastObject = Object;
|
||||||
|
objects = Object;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user