]> Nutra Git (v1) - gamesguru/feather.git/commitdiff
coins: send to self should send to current account
authortobtoht <tob@featherwallet.org>
Tue, 3 Sep 2024 17:58:30 +0000 (19:58 +0200)
committertobtoht <tob@featherwallet.org>
Tue, 3 Sep 2024 17:58:30 +0000 (19:58 +0200)
src/dialog/OutputSweepDialog.cpp
src/libwalletqt/Wallet.cpp

index b9e4c00f1860cffae3b6890c9e3a0f6b1d9cfdfe..a7a9caacd6f992a090dc9bc221580df09abf2656 100644 (file)
@@ -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, [&](){
index 8a4576407f8dc591f80bfe35562eda253ded0f8c..61fb184a455f99d35e132d8ac4ecc0c0a93a507d 100644 (file)
@@ -901,7 +901,7 @@ void Wallet::createTransactionMultiDest(const QVector<QString> &addresses, const
 
 void Wallet::sweepOutputs(const QVector<QString> &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";