aboutsummaryrefslogtreecommitdiff
path: root/src/qt/sendcoinsdialog.cpp
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2021-04-17 01:49:57 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2021-04-18 21:10:47 +0100
commitc5a470eee1ac864b7c02b6a1669327b68411d806 (patch)
treedc449a601701f0fcc8f92cf20351a2fb74ab1695 /src/qt/sendcoinsdialog.cpp
parent585cbe22575306c05b156ea90faa9caa1add4c87 (diff)
refactor: Drop CCoinControl::SetNull
Diffstat (limited to 'src/qt/sendcoinsdialog.cpp')
-rw-r--r--src/qt/sendcoinsdialog.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp
index f0e720617c..186e8b8647 100644
--- a/src/qt/sendcoinsdialog.cpp
+++ b/src/qt/sendcoinsdialog.cpp
@@ -839,8 +839,9 @@ void SendCoinsDialog::coinControlFeatureChanged(bool checked)
{
ui->frameCoinControl->setVisible(checked);
- if (!checked && model) // coin control features disabled
- m_coin_control->SetNull();
+ if (!checked && model) { // coin control features disabled
+ m_coin_control = std::make_unique<CCoinControl>();
+ }
coinControlUpdateLabels();
}