From: tobtoht Date: Sat, 30 Dec 2023 14:49:51 +0000 (+0100) Subject: view-only: set default wallet name X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=7e74d0e1d14384a877515047f67081c49c00b238;p=gamesguru%2Ffeather.git view-only: set default wallet name --- diff --git a/src/dialog/ViewOnlyDialog.cpp b/src/dialog/ViewOnlyDialog.cpp index 76cd874f..9276c682 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; }