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

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);