From 7e74d0e1d14384a877515047f67081c49c00b238 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Sat, 30 Dec 2023 15:49:51 +0100 Subject: [PATCH] view-only: set default wallet name --- src/dialog/ViewOnlyDialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dialog/ViewOnlyDialog.cpp b/src/dialog/ViewOnlyDialog.cpp index 76cd874..9276c68 100644 --- a/src/dialog/ViewOnlyDialog.cpp +++ b/src/dialog/ViewOnlyDialog.cpp @@ -43,7 +43,8 @@ ViewOnlyDialog::ViewOnlyDialog(Wallet *wallet, QWidget *parent) } void ViewOnlyDialog::onWriteViewOnlyWallet(){ - QString fn = QFileDialog::getSaveFileName(this, "Save .keys wallet file", Utils::defaultWalletDir(), "Monero wallet (*.keys)"); + QDir walletDir = QDir(Utils::defaultWalletDir()); + QString fn = QFileDialog::getSaveFileName(this, "Save .keys wallet file", walletDir.filePath(QString("%1_view_only").arg(m_wallet->walletName())), "Monero wallet (*.keys)"); if (fn.isEmpty()) { return; }