Reset an alarm doesn't return the properties to their default values
Bug #1370649 reported by
Leo Arias
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Critical
|
Zsombor Egri | ||
Vivid |
New
|
Undecided
|
Unassigned | ||
ubuntu-ui-toolkit (Ubuntu RTM) |
New
|
Undecided
|
Unassigned |
Bug Description
When I reset a repeating alarm with multiple daysOfWeek set, daysOfWeek is not reset to Alarm.AutoDetect.
To reproduce:
Apply the patch in http://
FAIL! : qmltestrunner:
Actual (): 4
Expected (): 128
Loc: [/home/
Related branches
lp://staging/~zsombi/ubuntu-ui-toolkit/alarm-data-adaptation
- PS Jenkins bot: Approve (continuous-integration)
- Cris Dywan: Approve
-
Diff: 4045 lines (+1417/-1493)18 files modifiedmodules/Ubuntu/Components/plugin/adapters/alarmsadapter_organizer.cpp (+540/-478)
modules/Ubuntu/Components/plugin/adapters/alarmsadapter_p.h (+115/-33)
modules/Ubuntu/Components/plugin/alarmmanager_p.cpp (+36/-19)
modules/Ubuntu/Components/plugin/alarmmanager_p.h (+55/-107)
modules/Ubuntu/Components/plugin/alarmmanager_p_p.h (+13/-6)
modules/Ubuntu/Components/plugin/alarmrequest_p.cpp (+0/-84)
modules/Ubuntu/Components/plugin/alarmrequest_p.h (+0/-64)
modules/Ubuntu/Components/plugin/alarmrequest_p_p.h (+0/-50)
modules/Ubuntu/Components/plugin/plugin.pro (+0/-3)
modules/Ubuntu/Components/plugin/ucalarm.cpp (+128/-173)
modules/Ubuntu/Components/plugin/ucalarm.h (+6/-2)
modules/Ubuntu/Components/plugin/ucalarm_p.h (+27/-7)
modules/Ubuntu/Components/plugin/ucalarmmodel.cpp (+118/-93)
modules/Ubuntu/Components/plugin/ucalarmmodel.h (+16/-10)
tests/resources/alarm/AlarmDays.qml (+15/-24)
tests/resources/alarm/Alarms.qml (+174/-148)
tests/unit/tst_alarms/tst_alarms.cpp (+130/-167)
tests/unit_x11/tst_components/tst_alarms.qml (+44/-25)
tags: | added: alarm nik90 |
Changed in ubuntu-ui-toolkit: | |
importance: | Undecided → Low |
Changed in ubuntu-ui-toolkit: | |
importance: | High → Critical |
Changed in ubuntu-ui-toolkit: | |
milestone: | none → 11.07 |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Zsombor Egri (zsombi) |
importance: | Undecided → Critical |
status: | New → In Progress |
no longer affects: | ubuntu-ui-toolkit |
To post a comment you must log in.
Indeed the default value should be AutoDetect, but actually that one we cannot really keep. As the AutoDetect should update daysOfWeek immediately when set. Meaning that when someone sets that as value for daysOfWeek, and immediately checks the value of the property, it should never return AutoDetect alone, but a masked dsysOfWeek depending on the alarm date and type.
So in that sense the paste bin test is wrong.