Fix #118: use File.equals

This commit is contained in:
Matthew Wong 2015-08-12 10:05:43 -04:00
parent 113dadd227
commit 0cb325f4b1

View file

@ -90,8 +90,7 @@ public class PasswordItem implements Comparable{
public boolean equals(Object o){
PasswordItem other = (PasswordItem) o;
// Makes it possible to have a category and a password with the same name
return (other.getType() + other.getName())
.equals(this.getType() + this.getName());
return (other.getFile().equals(this.getFile()));
}
@Override