Fix potential crash when dragging in files on some systems
This might fix https://forums.zotero.org/discussion/57031
This commit is contained in:
parent
72302c8e24
commit
d102e32f7d
1 changed files with 3 additions and 0 deletions
|
@ -2625,6 +2625,9 @@ Zotero.DragDrop = {
|
|||
var files = [];
|
||||
for (var i=0; i<len; i++) {
|
||||
var file = dt.mozGetDataAt("application/x-moz-file", i);
|
||||
if (!file) {
|
||||
continue;
|
||||
}
|
||||
file.QueryInterface(Components.interfaces.nsIFile);
|
||||
// Don't allow folder drag
|
||||
if (file.isDirectory()) {
|
||||
|
|
Loading…
Reference in a new issue