From b4e08e3d51416aa8c8c88a5d0cc77c612f0cb0c5 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 25 Aug 2015 15:17:54 +0000 Subject: [PATCH] Fix missing destination when pasting into empty dir --- filemanager/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filemanager/js/app.js b/filemanager/js/app.js index befe3bd23c..1141456fcf 100644 --- a/filemanager/js/app.js +++ b/filemanager/js/app.js @@ -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); }, /**