Skip to content

Commit

Permalink
Just Delete link from entry if the file is no longer accesible on disk (
Browse files Browse the repository at this point in the history
JabRef#12324)

* Just Delete link from entry if the file is no longer accesible on disk

Fixes JabRef#9731

* Update CHANGELOG.md

Co-authored-by: Subhramit Basu Bhowmick <[email protected]>

---------

Co-authored-by: Subhramit Basu Bhowmick <[email protected]>
  • Loading branch information
Siedlerchr and subhramit authored Dec 23, 2024
1 parent 6de2218 commit c8acffe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv
- We fixed an issue when click on entry at "Check Integrity" wasn't properly focusing the entry and field. [#11997](https://github.com/JabRef/jabref/issues/11997)
- We fixed an issue with the ui not scaling when changing the font size [#11219](https://github.com/JabRef/jabref/issues/11219)
- We fixed an issue where a custom application for external file types would not be saved [#112311](https://github.com/JabRef/jabref/issues/12311)
- We fixed an issue where a file that no longer exists could not be deleted from an entry using keyboard shortcut [#9731](https://github.com/JabRef/jabref/issues/9731)

### Removed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public void execute() {
dialogTitle = Localization.lang("Delete '%0'", path.getFileName().toString());
} else {
dialogService.notify(Localization.lang("Error accessing file '%0'.", linkedFile.getLink()));
deleteFiles(false);
// Deleting a non-existing file is a success
success = true;
return;
Expand Down

0 comments on commit c8acffe

Please sign in to comment.