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

* plain skip files that are renamed from the same to the same path

This commit is contained in:
Reinhard Pointner 2012-07-24 17:34:53 +00:00
parent 921554f126
commit 7ec109cce1

View File

@ -47,7 +47,6 @@ class RenameAction extends AbstractAction {
public static final String RENAME_ACTION = "RENAME_ACTION"; public static final String RENAME_ACTION = "RENAME_ACTION";
private final RenameModel model; private final RenameModel model;
@ -253,7 +252,9 @@ class RenameAction extends AbstractAction {
firePropertyChange("currentFile", mapping.getKey(), mapping.getValue()); firePropertyChange("currentFile", mapping.getKey(), mapping.getValue());
// rename file, throw exception on failure // rename file, throw exception on failure
action.rename(mapping.getKey(), mapping.getValue()); if (!mapping.getKey().equals(mapping.getValue())) {
action.rename(mapping.getKey(), mapping.getValue());
}
// remember successfully renamed matches for history entry and possible revert // remember successfully renamed matches for history entry and possible revert
renameLog.put(mapping.getKey(), mapping.getValue()); renameLog.put(mapping.getKey(), mapping.getValue());