* 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
1 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,6 @@ class RenameAction extends AbstractAction {
public static final String RENAME_ACTION = "RENAME_ACTION";
private final RenameModel model;
@ -253,7 +252,9 @@ class RenameAction extends AbstractAction {
firePropertyChange("currentFile", mapping.getKey(), mapping.getValue());
// 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
renameLog.put(mapping.getKey(), mapping.getValue());