Fix error and show File Not Found dialog opening attachment with empty path
This commit is contained in:
parent
ccc4dccffd
commit
e69786bd69
1 changed files with 4 additions and 0 deletions
|
@ -4071,6 +4071,10 @@ var ZoteroPane = new function()
|
|||
|
||||
let isLinkedFile = !item.isImportedAttachment();
|
||||
let path = item.getFilePath();
|
||||
if (!path) {
|
||||
ZoteroPane_Local.showAttachmentNotFoundDialog(item.id, true, true);
|
||||
return;
|
||||
}
|
||||
let fileExists = await OS.File.exists(path);
|
||||
|
||||
// If the file is an evicted iCloud Drive file, launch that to trigger a download.
|
||||
|
|
Loading…
Reference in a new issue