fix(operation) shift + delete: delete ".." directory

This commit is contained in:
coderaiser 2016-06-10 19:58:51 +03:00
parent a95e6e73e5
commit bf15897cc0

View file

@ -273,11 +273,11 @@
}
if (name === '..')
Dialog.alert.noFiles(TITLE);
else
Dialog.confirm(TITLE, msg, {cancel: false}).then(function() {
deleteSilent(files);
});
return Dialog.alert.noFiles(TITLE);
Dialog.confirm(TITLE, msg, {cancel: false}).then(function() {
deleteSilent(files);
});
}
/**
@ -292,6 +292,9 @@
path = Info.dirPath,
name = Info.name;
if (name === '..')
return Dialog.alert.noFiles(TITLE);
showLoad();
if (!files)