refactor: Drop CCoinControl::SetNull

This commit is contained in:
João Barbosa committed 2021-04-18 21:10:47 +01:00
1 parent 585cbe2257
commit c5a470eee1
3 files changed
+13 -31

No files matched your search

+3 -2
View File
@@ -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();
}