giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.36k stars 458 forks source link

Recent Documents corruption when file is deleted/missing #2277

Closed ValdikSS closed 1 year ago

ValdikSS commented 1 year ago

Version, Operative system Fedora 37, CherryTree 0.99.55 from Flatpak.

Describe the bug When the last opened database .ctb file has been deleted since CherryTree last run, the program upon opening would corrupt its path in "Recent documents" entry, replacing either part or entire path as random garbage symbols.

To Reproduce Steps to reproduce the behavior:

  1. Open the database in CherryTree, make sure "Miscellaneous → Reload Document From Last Session" checkbox is set in the preferences
  2. Close CherryTree
  3. Rename the database file which was previously opened, to make the program unable to open it on start
  4. Start CherryTree
  5. Check Recent Documents items: it would not show the path of the previous file

Screenshots image

giuspen commented 1 year ago

thanks for reporting, this will be fixed in upcoming 0.99.56