Commit 012a1cae authored by Jens Georg's avatar Jens Georg
Browse files

When Trash is not available, also remove RAW file

https://bugzilla.gnome.org/show_bug.cgi?id=719186
parent 11f5efeb
......@@ -723,6 +723,17 @@ public abstract class MediaSourceCollection : DatabaseSourceCollection {
// Note: we may get an exception even though the delete succeeded.
debug("Exception deleting file %s: %s", file.get_path(), err.message);
}
var masterfile = source.get_master_file();
if (masterfile != null) {
try {
masterfile.delete(null);
} catch (Error err) {
if (!(err is IOError.NOT_FOUND)) {
debug("Exception deleting master file %s: %s", masterfile.get_path(), err.message);
}
}
}
bool deleted = !file.query_exists();
if (!deleted && null != not_deleted) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment