OptionSelector: selectedIndex should be updated before onTriggered and onDelegateClicked
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Confirmed
|
Undecided
|
Zoltan Balogh | ||
ubuntu-ui-toolkit (Ubuntu) |
Confirmed
|
Undecided
|
Cris Dywan |
Bug Description
}
}
}
With this example we see that onTriggered and onDelegateClicked are being fired before selectedIndex has been updated. This makes the onTriggered quite useless, as the important info of which is the selectedIndex is not there yet. onDelegateClicked suffers from the same problem, although it's index argument allows to workaround this bug.
IMHO having the selectedIndex updated before triggering these signals is a justifiable and sane behavior.
Changed in canonical-devices-system-image: | |
assignee: | nobody → Zoltan Balogh (bzoltan) |
status: | New → Confirmed |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Christian Dywan (kalikiana) |
Status changed to 'Confirmed' because the bug affects multiple users.