diff --git a/src/app/files/file-explorer.js b/src/app/files/file-explorer.js index cdfe14753d..1fb4d62266 100644 --- a/src/app/files/file-explorer.js +++ b/src/app/files/file-explorer.js @@ -164,10 +164,11 @@ function fileExplorer (appAPI, files) { contextMenu(event, { 'Rename': () => { if (self.files.readonly) return - editModeOn(label) + var name = label.querySelector('label[data-path="' + key + '"]') + if (name) editModeOn(name) }, 'Delete': () => { - files.remove(key) + modalDialogCustom.confirm(null, 'Do you want to delete this file?', () => { files.remove(key) }, () => {}) } }) })