Skip to content

Commit

Permalink
Check if there are already links
Browse files Browse the repository at this point in the history
Fixes #326. Doesn't clear the old links (as the previous version) did.
  • Loading branch information
michael-simons authored and mishako committed Apr 13, 2017
1 parent 1e5cce8 commit 3a4525c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ public void setLinks(List<Link> links) {

@Override
public void setLink(Link link) {
links.set(0, link);
if(links.size() > 0) {
links.set(0, link);
} else {
links.add(link);
}
}

@Override
Expand Down

0 comments on commit 3a4525c

Please sign in to comment.