diff options
| author | Wladimir J. van der Laan <[email protected]> | 2018-03-06 22:19:30 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2018-03-06 22:35:55 +0100 |
| commit | 9fb3898c3fb00d4de005f2f56af1d8ac0e4616aa (patch) | |
| tree | 7d2b1bb378b3b979067983be171072b2d32cdcb4 /src | |
| parent | Merge #12622: net: Correct addrman logging (diff) | |
| parent | [qt] send: Clear All also resets coin control options (diff) | |
| download | discoin-9fb3898c3fb00d4de005f2f56af1d8ac0e4616aa.tar.xz discoin-9fb3898c3fb00d4de005f2f56af1d8ac0e4616aa.zip | |
Merge #12432: [qt] send: Clear All also resets coin control options
f506c0a7f [qt] send: Clear All also resets coin control options (Sjors Provoost)
Pull request description:
This change makes it so that a custom change address and manual input selection are removed if the user clicks Clear All in the send screen.
Tree-SHA512: 78746043a74c9c26ef476eb0df7ce95411683749d9f6b2747222eaac751e241ea7d4d7ce9e4e69ed0b19fa76754d8584e5bef5bba1ad6598f8e39c784b4264d2
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt/sendcoinsdialog.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qt/sendcoinsdialog.cpp b/src/qt/sendcoinsdialog.cpp index ef36aab1a..50d51c527 100644 --- a/src/qt/sendcoinsdialog.cpp +++ b/src/qt/sendcoinsdialog.cpp @@ -376,6 +376,12 @@ void SendCoinsDialog::on_sendButton_clicked() void SendCoinsDialog::clear() { + // Clear coin control settings + CoinControlDialog::coinControl()->UnSelectAll(); + ui->checkBoxCoinControlChange->setChecked(false); + ui->lineEditCoinControlChange->clear(); + coinControlUpdateLabels(); + // Remove entries until only one left while(ui->entries->count()) { |