Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ changes (where available).

## Bug Fixes

- Fixed a trashing error dialog when deleting a virgin duplicate of an
image while sidecar creation is set to "after edit".

- Fixed color harmonizer's auto-detect harmony applying the hue
histogram of the previously viewed image after switching images in the
darkroom.
Expand Down
4 changes: 4 additions & 0 deletions src/control/jobs/control_jobs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1369,6 +1369,10 @@ static _dt_delete_status_t delete_file_from_disk
{
_dt_delete_status_t delete_status = _DT_DELETE_STATUS_UNKNOWN;

// if the file does not exist on disk, it is already deleted
if(!g_file_test(filename, G_FILE_TEST_EXISTS))
return _DT_DELETE_STATUS_DELETED;

GFile *gfile = g_file_new_for_path(filename);
int send_to_trash = dt_conf_get_bool("send_to_trash");

Expand Down
Loading