That is not correct.  The whole design of mediaitems are to support a single 
serviceitem being created and added to a single target.
The addTo calls a function in mediamanageritem which controls the creation of 
the serviceitem via generateServiceItem and the adding to the correct 
controller.

ServiceItemContext this was added to show where the request came from not the 
target.

Your code would add the serviceitem twice to a target.

The mediamanager lists only have the concept of generating a single serviceitem 
with either one or more selected leaves included.  

How can you differentiate between adding two leaves to one service item and 
adding two service items of one leaf each.

What are you trying to achieve and I will help you implement it if possible ;-) 
-- 
https://code.launchpad.net/~arjan-i/openlp/images_groups_bugfix/+merge/156165
Your team OpenLP Core is subscribed to branch lp:openlp.

_______________________________________________
Mailing list: https://launchpad.net/~openlp-core
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openlp-core
More help   : https://help.launchpad.net/ListHelp

Reply via email to