1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

Fix GUI conflict behaviour

@see https://www.filebot.net/forums/viewtopic.php?f=8&t=4428&p=24740#p24740
This commit is contained in:
Reinhard Pointner 2016-12-06 00:30:51 +09:00
parent a106151ca4
commit d4624fb47a

View File

@ -275,16 +275,16 @@ class ConflictDialog extends JDialog {
issues.add("Missing extension");
}
// check if input and output overlap
if (renameMap.containsKey(to)) {
issues.add("Conflict with source path");
}
// one file per unique output path
if (!destFiles.add(to)) {
issues.add("Duplicate destination path");
}
// check if input and output overlap
if (renameMap.containsKey(to) && !to.equals(from)) {
issues.add("Conflict with source path");
}
// check if destination path already exists
if (to.exists() && !to.equals(from)) {
issues.add("File already exists");