mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-25 01:26:45 +00:00
copy label on wallet copy
This commit is contained in:
parent
0734757a17
commit
04631be8c1
1 changed files with 2 additions and 0 deletions
|
@ -114,6 +114,7 @@ public class Wallet extends Persistable implements Comparable<Wallet> {
|
||||||
|
|
||||||
childWallet.setId(null);
|
childWallet.setId(null);
|
||||||
childWallet.setName(standardAccount.getName());
|
childWallet.setName(standardAccount.getName());
|
||||||
|
childWallet.setLabel(null);
|
||||||
childWallet.purposeNodes.clear();
|
childWallet.purposeNodes.clear();
|
||||||
childWallet.transactions.clear();
|
childWallet.transactions.clear();
|
||||||
childWallet.detachedLabels.clear();
|
childWallet.detachedLabels.clear();
|
||||||
|
@ -1744,6 +1745,7 @@ public class Wallet extends Persistable implements Comparable<Wallet> {
|
||||||
public Wallet copy() {
|
public Wallet copy() {
|
||||||
Wallet copy = new Wallet(name);
|
Wallet copy = new Wallet(name);
|
||||||
copy.setId(getId());
|
copy.setId(getId());
|
||||||
|
copy.setLabel(label);
|
||||||
copy.setMasterWallet(masterWallet);
|
copy.setMasterWallet(masterWallet);
|
||||||
for(Wallet childWallet : childWallets) {
|
for(Wallet childWallet : childWallets) {
|
||||||
Wallet copyChildWallet = childWallet.copy();
|
Wallet copyChildWallet = childWallet.copy();
|
||||||
|
|
Loading…
Reference in a new issue