Skip to content

Commit

Permalink
qt, refactor: Keep CoinControlDialog in the main event loop
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Sep 7, 2021
1 parent 7830cd0 commit 59f7ba4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/qt/sendcoinsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59f7ba4

Please sign in to comment.