Escape key looses changes on "New file" with unsaved data

Bug #850996 reported by Lucio Crusca
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
HomeBank
Fix Released
Low
Maxime DOYEN

Bug Description

Steps to reproduce:

1. Create a new file (any type will do)
2. Add a transaction
3. head menu File and click New
4. A dialog pops up asking what to do of unsaved changes
5. Hit the Escape key on the keyboard (which is supposed to match the Cancel button)
6. A new file is created and you have lost your previous data (Escape key matched the Don't save button)

Revision history for this message
Lucio Crusca (lucrus) wrote :

Just forgot to mention which version I'm using:

$ apt-cache policy homebank
homebank:
  Installed: 4.3-0ubuntu1
  Candidate: 4.3-0ubuntu1
  Version table:
 *** 4.3-0ubuntu1 0
        500 http://it.archive.ubuntu.com/ubuntu/ natty/universe i386 Packages
        100 /var/lib/dpkg/status

Revision history for this message
David Jones (dwrj87-deactivatedaccount-deactivatedaccount-deactivatedaccount) wrote :

Confirmed on 4.4 on Linux Mint 11

Changed in homebank:
status: New → Confirmed
Revision history for this message
Lucio Crusca (lucrus) wrote :

Here is the patch.

$ diff homebankorig/homebank-4.3/src/dsp_wallet.c homebank/homebank-4.3/src/dsp_wallet.c
867c867
< if(result == 1)
---
> if(result == 1 || result == GTK_RESPONSE_DELETE_EVENT)

Lucio Crusca (lucrus)
Changed in homebank:
status: Confirmed → In Progress
assignee: nobody → Lucio Crusca (lucio-sulweb)
Maxime DOYEN (mdoyen)
Changed in homebank:
assignee: Lucio Crusca (lucrus) → Maxime Doyen (mdoyen)
importance: Undecided → Low
status: In Progress → Fix Committed
milestone: none → 4.5
Revision history for this message
Maxime DOYEN (mdoyen) wrote :

Fixed for v4.5

Maxime DOYEN (mdoyen)
Changed in homebank:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.