Your sample code doesn't remove items from the model, but inserts. The behaviour you experience is due to both components using ListView (PathView or GridView behaves the same). When you alter the model, the currentIndex won't necessarily point to the same item was pointing anymore. Removing an element from the ListView will cause currentIndex to change as well. This bug is more related to ListView than to Picker itself.
Try the same with a ListView, and I'm sure you'll experience the same. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1344883 Title: PageHeadSections/Picker: selectedIndex changes incorrectly when inserting/removing model entries To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1344883/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
