when setting model to a OptionSelector the selectedIndex gets automatically set to 0

Bug #1361915 reported by Antti Kaijanmäki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

This should not happen. after setting a model the selected index should be explicitly set by the user or none of the items should be selected (selectedIndex ==-1)

Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

This is breaking system-settings APN selection.

Revision history for this message
Zsombor Egri (zsombi) wrote :

This cannot really be done reliably, as you never know whether the model has the index you specify, and then it may point to wrong index. The behaviour we have is the standard for ListViews.

Changed in ubuntu-ui-toolkit:
importance: Undecided → Medium
status: New → Triaged
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-ui-toolkit
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.