PreviousNextTracker indexSee it online !

(239/240) 4067 - Erroneous Dialog - Opening Backup File

jEdit 5.5.0 under JAVA SE 1.8.0_171 under Windows 10 Pro
Every file I open now pops up the "Opening Backup File" dialog saying "the file ... is likely a jEdit backup file". This never happened before v5.5.0. What is the criteria for determining when this dialog should appear?

Submitted jpotellerti - 2018-04-18 17:59:37.556000 Assigned
Priority 1 Labels
Status open Group normal bug
Resolution None

Comments

2018-04-18 18:03:33.474000
jpotellerti

Backup settings

2018-04-18%2014_02_24-Global%20Options%20jEdit_%20Saving%20%26%20Backup.png (35.9Kio)

2018-04-24 12:22:17.554000
gordon1986

This is a bug in MiscUtilities:isBackup

If properties:backup.suffix is a null string ("") then it will always return true.

2018-04-24 15:31:21.988000
jpotellerti

If the backup prefix and suffix are both null and a backup path is not null, perhaps isBackup should check only the path of the file being opened...