windows: recent file Clear keep deleted/renamed files

Bug #2055101 reported by Lindsay Lorden
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HomeBank
Fix Released
Low
Maxime DOYEN

Bug Description

This is a minor annoyance problem, doesn't affect functioning of HomeBank.

I created a test HomeBank file to check some things out. Once I had finished with it, I then deleted the file.

Under "File" / "Open Recent" I'm shown my main file plus the test file names - easy, I just used CLEAR under "Open Recent". Nope, it does not clear the two entries.
  NB: first time I did this, HomeBank crashed but all subsequent testing hasn't.

So I clicked on the TEST file which as expected failed to open - I/O Error message - and wondering if the dud entry would automatically disappear (or give me the option to delete it like MS Office does). Sadly, both files are still showing in the list.

So I opened my main file, then used Open Recent CLEAR again thinking that may cause the list to clear - nope, still have the non-existent file listed.

Closing my main file but leaving HomeBank open, I tried the Clear again. Still no luck 🥹

Seems I can't get rid of *any* filename listed under "Open recent". In a future update, can this be fixed (no rush req'd). Thanks.

----------------------
Running Windows 11/10
HomeBank 5.7.4
Running against GTK+ 3.24.3

Revision history for this message
Maxime DOYEN (mdoyen) wrote :

Tried to reproduce this on windows 11, did work fine for me.
The clear is an internal GTK action, and is not related to any specific HomeBank file.

the file where this is stored is C:\Users\<loginname>\AppData\Local\recently-used.xbel
but you should have right to delete this.

Changed in homebank:
importance: Undecided → Low
Revision history for this message
Lindsay Lorden (ludwigwn) wrote :

Thanks for the info; I've deleted the "/bookmark" lines relating to the now-deleted file and it's gone from Recent list.

I'll do a full test in the next few days to see if it re-occurs.

Revision history for this message
Lindsay Lorden (ludwigwn) wrote :

Done some more testing this afternoon, and reproduced the problem. PS I have reopen last file set ON.

---------------------------------------

Steps to recreate:
-----------------

1. Open a HB file
      Assuming you only have had just the one file open, there will only be this one in the recent list.

2. Save As another name
      Now you have two in the recent list.

3. Close HB entirely.

4. Now RENAME the new file in the directory, which means it no longer exists under first name.

5. Open HB.
      You get a "nothing" set of windows, as the deleted file won't be found.
      Try to CLEAR recent - effect is no change.
      Open the 'other' recent file and then try CLEAR - still no change.
      Close the open HB file and try again .. still both files listed in Recent.

6. Try using Recent list to open the non-existing file.
      For me HB presents an "I/O" error message and after a few seconds disappears - ie crashes.

7. Reopen HB and using the "Open" dialog, select the renamed HB file to open.
      Now CLEAR the recent list. A partial clear happens - the unopen (original) HB file is removed
      but *not* the currently open file nor the earlier filename which no longer exists.

8. Now toggle between the two file a number of time, opening the other existing file
    followed by CLEARing the recent list.
      You will find the not-open file that does exist gets cleared out but the non-existing file remains.
      Only solution is to manually edit the XBEL file to remove it.

---------------------------------------

Having done the above testing and creating the details above, I've gone back to retest. All is as stated except now for one variation - the unopen but existing file name is no longer getting CLEARed!
At this point, I manually deleted the appropriate lines, and the clearing is working once more for the two existing files.

Seems something random-ish is happening.

Maxime DOYEN (mdoyen)
Changed in homebank:
assignee: nobody → Maxime DOYEN (mdoyen)
milestone: none → 5.7.5
Revision history for this message
Maxime DOYEN (mdoyen) wrote :

ok, reproduced.
the mimetype of renamed/deleted file change in the .xbel files under windows, so that it is not cleared

summary: - open recent CLEAR not working
+ windows: recent file Clear keep deleted/renamed files
Changed in homebank:
status: New → Confirmed
Maxime DOYEN (mdoyen)
Changed in homebank:
status: Confirmed → Fix Committed
Maxime DOYEN (mdoyen)
Changed in homebank:
milestone: 5.7.5 → 5.8
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.

Other bug subscribers

Remote bug watches

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