diff --git a/src/main/java/com/sparrowwallet/sparrow/AppController.java b/src/main/java/com/sparrowwallet/sparrow/AppController.java index f0a200e4..ff994846 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppController.java +++ b/src/main/java/com/sparrowwallet/sparrow/AppController.java @@ -798,6 +798,7 @@ public class AppController implements Initializable { String fileName = ((Label)selectedTab.getGraphic()).getText(); if(fileName != null && !fileName.isEmpty()) { + fileName = fileName.replace('/', '_'); if(!fileName.endsWith(".psbt")) { fileName += ".psbt"; } diff --git a/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java b/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java index cb3bed45..b7ec2b7f 100644 --- a/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java +++ b/src/main/java/com/sparrowwallet/sparrow/transaction/HeadersController.java @@ -993,7 +993,7 @@ public class HeadersController extends TransactionFormController implements Init fileChooser.setTitle("Save PSBT"); if(headersForm.getName() != null && !headersForm.getName().isEmpty()) { - fileChooser.setInitialFileName(headersForm.getName() + ".psbt"); + fileChooser.setInitialFileName(headersForm.getName().replace('/', '_') + ".psbt"); } AppServices.moveToActiveWindowScreen(window, 800, 450);