Skip to content

Commit

Permalink
Merge #2854: [Qt] Don't always clear coin control
Browse files Browse the repository at this point in the history
0a8163b Don't update coincontrol for same coin type (Alessandro Rezzi)

Pull request description:

  Another trivial bug fix:  On creating a transaction with the GUI don't clear the Coin Control if the user presses the "Transparent" button when the transaction is already set on "Transparent" and same for "Shielded" (see the picture)
  ![2023-04-21-132113_1366x768_scrot](https://user-images.githubusercontent.com/22001825/233624199-89a7bc2b-bbe2-4bf7-a549-d2b78a398577.png)

ACKs for top commit:
  Liquid369:
    tACK 0a8163b
  Fuzzbawls:
    ACK 0a8163b

Tree-SHA512: b87d756f9e3bd060372d554f1616e8823f8d284b67a83bcea51d1eeb72edb3b32621a91bfdad22363daedca6e605eee7dd2fa17ca5a623a1e1bded297a3ff35f
  • Loading branch information
Fuzzbawls committed May 3, 2023
2 parents 05e73a0 + 0a8163b commit a428bc2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/qt/pivx/send.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -783,11 +783,13 @@ void SendWidget::onCheckBoxChanged()

void SendWidget::onPIVSelected(bool _isTransparent)
{
isTransparent = _isTransparent;
resetChangeAddress();
resetCoinControl();
tryRefreshAmounts();
updateStyle(coinIcon);
if (isTransparent != _isTransparent) {
isTransparent = _isTransparent;
resetChangeAddress();
resetCoinControl();
tryRefreshAmounts();
updateStyle(coinIcon);
}
}

void SendWidget::onContactsClicked(SendMultiRow* entry)
Expand Down

0 comments on commit a428bc2

Please sign in to comment.