mirror of https://github.com/noisymime/Arduino.git
Fixed regression: trivial error on String comparison
Fix #5423
The regression has been introduced in:
72f815b
Refactor file adding and renaming, and save as handling
This commit is contained in:
parent
be9bbc3255
commit
5c097c03c5
|
@ -250,7 +250,7 @@ public class Sketch {
|
||||||
// If the folder is actually renamed (as opposed to moved somewhere
|
// If the folder is actually renamed (as opposed to moved somewhere
|
||||||
// else), check for conflicts using the new filename, but the
|
// else), check for conflicts using the new filename, but the
|
||||||
// existing folder name.
|
// existing folder name.
|
||||||
if(newFolder.getName() != folder.getName())
|
if (!newFolder.getName().equals(folder.getName()))
|
||||||
checkNewFilename(new File(folder, newPrimary));
|
checkNewFilename(new File(folder, newPrimary));
|
||||||
|
|
||||||
return new File(newFolder, newPrimary);
|
return new File(newFolder, newPrimary);
|
||||||
|
|
Loading…
Reference in New Issue