Fix missing destination when pasting into empty dir

This commit is contained in:
Nathan Gray 2015-08-25 15:17:54 +00:00
parent 944d00c1cb
commit b4e08e3d51

View File

@ -789,7 +789,7 @@ app.classes.filemanager = AppJS.extend(
// Target will be missing ID if directory is empty // Target will be missing ID if directory is empty
// so start with the current directory // so start with the current directory
var dst = this.get_path(_action.parent.data.nextmatch.getInstanceManager().uniqueId || false); var nm_dst = this.get_path(_action.parent.data.nextmatch.getInstanceManager().uniqueId || false);
// File(s) were dropped on a row, they want them inside // File(s) were dropped on a row, they want them inside
if(_target) if(_target)
@ -809,7 +809,7 @@ app.classes.filemanager = AppJS.extend(
} }
} }
this._do_action(_action.id.replace("file_drop_",''), src, false, dst); this._do_action(_action.id.replace("file_drop_",''), src, false, dst || nm_dst);
}, },
/** /**