No, changing the model will reset the selectedIndex. We frequently got (conflicting) requests from apps to change the behavior in the past, to either keep the value, or to reset it to -1, or to reset it to 0. After several iterations and discussions, we decided to reset the selectedIndex to 0 (or -1 for an empty model) when the model changes, see this bug and the bugs linked in the comments there https://bugs.launchpad.net/ubuntu-rtm/+source/ubuntu-ui- toolkit/+bug/1513933
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1557707 Title: [Sections] selectedIndex binding is broken if the model changes To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1557707/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
