1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-31 20:52:13 +01:00

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:
Cristian Maglie 2016-09-29 18:21:09 +02:00
parent be9bbc3255
commit 5c097c03c5

View File

@ -250,7 +250,7 @@ public class Sketch {
// If the folder is actually renamed (as opposed to moved somewhere
// else), check for conflicts using the new filename, but the
// existing folder name.
if(newFolder.getName() != folder.getName())
if (!newFolder.getName().equals(folder.getName()))
checkNewFilename(new File(folder, newPrimary));
return new File(newFolder, newPrimary);