Browse Source

Remove illegal / characters from output descriptors

bwt
Craig Raw 4 years ago
parent
commit
13a486597c
  1. 2
      src/main/java/com/sparrowwallet/sparrow/wallet/SettingsController.java

2
src/main/java/com/sparrowwallet/sparrow/wallet/SettingsController.java

@ -261,7 +261,7 @@ public class SettingsController extends WalletFormController implements Initiali
Optional<String> text = dialog.showAndWait(); Optional<String> text = dialog.showAndWait();
if(text.isPresent() && !text.get().isEmpty() && !text.get().equals(outputDescriptorString)) { if(text.isPresent() && !text.get().isEmpty() && !text.get().equals(outputDescriptorString)) {
try { try {
OutputDescriptor editedOutputDescriptor = OutputDescriptor.getOutputDescriptor(text.get()); OutputDescriptor editedOutputDescriptor = OutputDescriptor.getOutputDescriptor(text.get().trim().replace("\\", ""));
Wallet editedWallet = editedOutputDescriptor.toWallet(); Wallet editedWallet = editedOutputDescriptor.toWallet();
editedWallet.setName(getWalletForm().getWallet().getName()); editedWallet.setName(getWalletForm().getWallet().getName());

Loading…
Cancel
Save