Setting ListItem.selected doesn’t update the checkbox state
Bug #1461501 reported by
Olivier Tilloy
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
High
|
Zsombor Egri | ||
Vivid |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Since yesterday webbrowser-app in wily uses the new ListItem API available in version 1.2 of the UITK. I’ve noticed one bug when a list is in multi-selection mode, which I’ve isolated in the attached test file.
To reproduce the issue:
- launch the scene with qmlscene
- click on the checkbox of any item (its opacity increases from 0.3 to 1.0)
- then click anywhere on the same item but the checkbox, this deselects the item (the opacity of the item decreases to 0.3)
Expected result: the checkbox is unchecked
Current result: the checkbox remains checked
Related branches
lp://staging/~zsombi/ubuntu-ui-toolkit/listitem_selectmode
- PS Jenkins bot: Approve (continuous-integration)
- Ubuntu SDK team: Pending requested
-
Diff: 378 lines (+250/-1)9 files modifiedcomponents.api (+1/-0)
modules/Ubuntu/Components/Themes/Ambiance/1.2/ListItemStyle.qml (+7/-0)
modules/Ubuntu/Components/Themes/Ambiance/1.3/ListItemStyle.qml (+5/-0)
modules/Ubuntu/Components/plugin/plugin.cpp (+1/-0)
modules/Ubuntu/Components/plugin/uclistitem.cpp (+17/-0)
modules/Ubuntu/Components/plugin/uclistitem.h (+10/-1)
modules/Ubuntu/Components/plugin/uclistitem_p.h (+1/-0)
tests/unit_x11/tst_components/tst_listitem_selectmode.qml (+104/-0)
tests/unit_x11/tst_components/tst_listitem_selectmode13.qml (+104/-0)
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Zsombor Egri (zsombi) |
importance: | Undecided → Medium |
description: | updated |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
importance: | Medium → High |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in ubuntu-ui-toolkit (Ubuntu Vivid): | |
status: | New → Fix Committed |
To post a comment you must log in.
Status changed to 'Confirmed' because the bug affects multiple users.