Fix missing destination when pasting into empty dir

This commit is contained in:
Nathan Gray 2015-08-26 14:23:27 +00:00
parent 547335c139
commit eb12e0f8ac

View File

@ -789,7 +789,7 @@ app.classes.filemanager = AppJS.extend(
// Target will be missing ID if directory is empty
// 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
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);
},
/**