count property of Qquickrepeater is not decreased to zero after deleting the last element
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
Medium
|
Unassigned | ||
Ubuntu Clock App |
Fix Released
|
Medium
|
Nekhelesh Ramananthan | ||
Ubuntu UI Toolkit |
Invalid
|
Undecided
|
Unassigned |
Bug Description
In Ubuntu-clock-app, if you delete the last world city the count property of Qquickrepeater remains set at one instead of zero. If you add 2 world cities (count=2), and then delete one, the count changes to 1. If you delete the last one, the count remains as 1.
To reproduce the bug:
- launch the app with autopilot:
autopilot3 launch -i Qt qmlscene ../../app/
- add a World city, clicking on the "Add City" button and selecting a city
- with autopilot3 vis verify the count property of QQuickRepater with objectName "userWorldCityR
- swipe and delete the previously added city
- launch autopilot3 vis again and verify the count property of QQuickRepater with objectName "userWorldCityR
Related branches
- Bartosz Kosiorek: Approve
- Ubuntu Phone Apps Jenkins Bot: Approve (continuous-integration)
-
Diff: 717 lines (+41/-578)9 files modifiedapp/upstreamcomponents/CMakeLists.txt (+0/-2)
app/upstreamcomponents/ListItemWithActions.qml (+0/-453)
app/upstreamcomponents/ListItemWithActionsCheckBox.qml (+0/-25)
app/upstreamcomponents/README.components (+0/-16)
app/worldclock/UserWorldCityDelegate.qml (+7/-6)
app/worldclock/UserWorldCityList.qml (+19/-76)
backend/modules/WorldClock/generictimezonemodel.cpp (+9/-0)
backend/modules/WorldClock/generictimezonemodel.h (+3/-0)
debian/changelog (+3/-0)
description: | updated |
Changed in ubuntu-clock-app: | |
status: | New → Confirmed |
Changed in ubuntu-clock-app: | |
milestone: | none → 3.6 |
assignee: | nobody → Nekhelesh Ramananthan (nik90) |
importance: | Undecided → Medium |
status: | Confirmed → In Progress |
Changed in canonical-devices-system-image: | |
milestone: | none → ww46-2015 |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in ubuntu-clock-app: | |
status: | Fix Committed → Fix Released |
Changed in canonical-devices-system-image: | |
status: | Confirmed → Fix Committed |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
If you look at the attached screenshot that I took of autopilot vis after deleting a world city I had added, you can see that in the clock
app the world city is gone, deleted, but in autopilot vis the world city is still there, it has not been delete, hence the count set at 1, at
least I think so!