view-only: set default wallet name

This commit is contained in:
tobtoht 2023-12-30 15:49:51 +01:00
parent a7d58775c0
commit 7e74d0e1d1
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -43,7 +43,8 @@ ViewOnlyDialog::ViewOnlyDialog(Wallet *wallet, QWidget *parent)
} }
void ViewOnlyDialog::onWriteViewOnlyWallet(){ 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()) { if (fn.isEmpty()) {
return; return;
} }