undo does not work on deleted items
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Alacarte Menu Editor |
Fix Released
|
Medium
|
|||
alacarte (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Hardy |
Fix Released
|
High
|
Unassigned | ||
Intrepid |
Fix Released
|
High
|
Unassigned |
Bug Description
Binary package hint: alacarte
When you delete an item from alacarte the undo functionality does not work so the item is lost. This is because in deleteItem the copy for undoing is saved _after_ the change has been made to "delete" the item instead of before. James Westby noticed this and provided a simple fix that moves the undo checkpoint before the file modification. This is a very simple and obviously correct fix and I cannot see any way for it to cause regressions. Note that this does not fix bug 118936, that bug is for revert not restoring deleted items and there is no clear way to fix it.
TEST CASE:
1. Highlight an item in alacarte
2. Press the delete key on your keyboard
3. Press Ctrl-Z to undo the change
Changed in alacarte: | |
importance: | Undecided → High |
milestone: | none → ubuntu-8.04.1 |
status: | New → In Progress |
milestone: | ubuntu-8.04.1 → none |
Changed in alacarte: | |
milestone: | ubuntu-8.04.1 → ubuntu-8.04.2 |
Changed in alacarte: | |
assignee: | nobody → gordis-2004-891 |
status: | Fix Released → Confirmed |
assignee: | gordis-2004-891 → nobody |
Changed in alacarte: | |
status: | Confirmed → Fix Released |
Changed in alacarte: | |
status: | Unknown → New |
Changed in alacarte: | |
importance: | Unknown → Medium |
Changed in alacarte: | |
status: | New → Fix Released |
Hi Travis,
Is this not fixed in Intrepid? If not it should be fixed there before
hardy-proposed.
Thanks,
James