From d245c4d12546c22be06e1ff43accee2725400319 Mon Sep 17 00:00:00 2001 From: tobtoht Date: Tue, 3 Sep 2024 19:58:30 +0200 Subject: [PATCH] coins: send to self should send to current account --- src/dialog/OutputSweepDialog.cpp | 2 +- src/libwalletqt/Wallet.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dialog/OutputSweepDialog.cpp b/src/dialog/OutputSweepDialog.cpp index b9e4c00..a7a9caa 100644 --- a/src/dialog/OutputSweepDialog.cpp +++ b/src/dialog/OutputSweepDialog.cpp @@ -15,7 +15,7 @@ OutputSweepDialog::OutputSweepDialog(QWidget *parent, quint64 amount) connect(ui->checkBox_churn, &QCheckBox::toggled, [&](bool toggled){ ui->lineEdit_address->setEnabled(!toggled); - ui->lineEdit_address->setText(toggled ? "Primary address" : ""); + ui->lineEdit_address->setText(toggled ? "This account" : ""); }); connect(ui->buttonBox, &QDialogButtonBox::accepted, [&](){ diff --git a/src/libwalletqt/Wallet.cpp b/src/libwalletqt/Wallet.cpp index 8a45764..61fb184 100644 --- a/src/libwalletqt/Wallet.cpp +++ b/src/libwalletqt/Wallet.cpp @@ -901,7 +901,7 @@ void Wallet::createTransactionMultiDest(const QVector &addresses, const void Wallet::sweepOutputs(const QVector &keyImages, QString address, bool churn, int outputs, int feeLevel) { if (churn) { - address = this->address(0, 0); + address = this->address(m_currentSubaddressAccount, 0); } qInfo() << "Creating transaction";