Update thumbnail when changing the issuer

Fixes #553
This commit is contained in:
Jakob Nixdorf 2021-03-11 18:46:02 +01:00
parent 0a67df3d70
commit c14f842718
No known key found for this signature in database
GPG key ID: BE99BF86574A7DBC
2 changed files with 6 additions and 3 deletions

View file

@ -353,8 +353,11 @@ public class Entry {
return issuer;
}
public void setIssuer(String issuer) {
public void setIssuer(String issuer, boolean updateThumbnail) {
this.issuer = issuer;
if (updateThumbnail && issuer != null)
setThumbnailFromIssuer(issuer);
}
public String getLabel() {

View file

@ -233,7 +233,7 @@ public class ManualEntryDialog {
adapter.addEntry(e);
} else {
oldEntry.setIssuer(issuer);
oldEntry.setIssuer(issuer, true);
oldEntry.setLabel(label);
oldEntry.setTags(tagsAdapter.getActiveTags());
@ -251,7 +251,7 @@ public class ManualEntryDialog {
adapter.addEntry(e);
} else {
oldEntry.setIssuer(issuer);
oldEntry.setIssuer(issuer, true);
oldEntry.setLabel(label);
oldEntry.setTags(tagsAdapter.getActiveTags());