qt, refactor: Keep CoinControlDialog in the main event loop

This commit is contained in:
Hennadii Stepanov 2021-06-07 18:28:14 +03:00
parent 7830cd0b35
commit 59f7ba4fd7
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -914,9 +914,9 @@ void SendCoinsDialog::coinControlFeatureChanged(bool checked)
// Coin Control: button inputs -> show actual coin control dialog
void SendCoinsDialog::coinControlButtonClicked()
{
CoinControlDialog dlg(*m_coin_control, model, platformStyle);
dlg.exec();
coinControlUpdateLabels();
auto dlg = new CoinControlDialog(*m_coin_control, model, platformStyle);
connect(dlg, &QDialog::finished, this, &SendCoinsDialog::coinControlUpdateLabels);
GUIUtil::ShowModalDialogAndDeleteOnClose(dlg);
}
// Coin Control: checkbox custom change address