Please ignore, solved. Sorry if it caused unnecessary work.

Staffan


On Tue, Oct 23, 2012 at 5:01 PM, Staffan Tylen <staffan.tylen@gmail.com> wrote:
I have the following strange scenario in a listview dialog, where all items have user data associated with them via setItemData:

- select an item (item 5 for example)
- create a new item (for example item 9) based on the selected, with a modified version of item 5's item data
- delete item 9
- select item 5 again
- create a new item - this fails because item 5 now seems to contain item 9's item data

Having run several variations of this it looks like getItemData retrieves the data from the last setItemData and not the data associated with the item passed to getItemData (based on listview~selected).

Could this be a possibility or do I have a bug in my code that I haven't been able to locate?

Due to the complexity of creating a demo for this I start by simply asking the question :)

Staffan