Fix #118: use File.equals
This commit is contained in:
parent
113dadd227
commit
0cb325f4b1
1 changed files with 2 additions and 3 deletions
|
@ -90,9 +90,8 @@ public class PasswordItem implements Comparable{
|
||||||
public boolean equals(Object o){
|
public boolean equals(Object o){
|
||||||
PasswordItem other = (PasswordItem) o;
|
PasswordItem other = (PasswordItem) o;
|
||||||
// Makes it possible to have a category and a password with the same name
|
// Makes it possible to have a category and a password with the same name
|
||||||
return (other.getType() + other.getName())
|
return (other.getFile().equals(this.getFile()));
|
||||||
.equals(this.getType() + this.getName());
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compareTo(Object o) {
|
public int compareTo(Object o) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue