mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-17 23:05:03 -05:00
* plain skip files that are renamed from the same to the same path
This commit is contained in:
parent
921554f126
commit
7ec109cce1
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user