mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-11-02 18:26:43 +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.setName(standardAccount.getName());
|
||||
childWallet.setLabel(null);
|
||||
childWallet.purposeNodes.clear();
|
||||
childWallet.transactions.clear();
|
||||
childWallet.detachedLabels.clear();
|
||||
|
@ -1744,6 +1745,7 @@ public class Wallet extends Persistable implements Comparable<Wallet> {
|
|||
public Wallet copy() {
|
||||
Wallet copy = new Wallet(name);
|
||||
copy.setId(getId());
|
||||
copy.setLabel(label);
|
||||
copy.setMasterWallet(masterWallet);
|
||||
for(Wallet childWallet : childWallets) {
|
||||
Wallet copyChildWallet = childWallet.copy();
|
||||
|
|
Loading…
Reference in a new issue