From 8eaf1956bb7eac4c948990f889850834b0df4b0e Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 18 Oct 2017 15:16:51 +0200 Subject: [PATCH] never show '/' as path for conflicting file names Signed-off-by: Robin Appelman --- apps/files/js/filelist.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 1d2afc74de..68a450e913 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -1259,7 +1259,9 @@ if (firstConflictPath.charAt(0) === '/') { firstConflictPath = firstConflictPath.substr(1); } - $firstConflict.find('td.filename span.innernametext').prepend($('').addClass('conflict-path').text(firstConflictPath)); + if (firstConflictPath && firstConflictPath !== '/') { + $firstConflict.find('td.filename span.innernametext').prepend($('').addClass('conflict-path').text(firstConflictPath)); + } } var conflictPath = path + '/';