Skip to content

Commit 0a8163b

Browse files
committed
Don't update coincontrol for same coin type
1 parent 744b324 commit 0a8163b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/qt/pivx/send.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -783,11 +783,13 @@ void SendWidget::onCheckBoxChanged()
783783

784784
void SendWidget::onPIVSelected(bool _isTransparent)
785785
{
786-
isTransparent = _isTransparent;
787-
resetChangeAddress();
788-
resetCoinControl();
789-
tryRefreshAmounts();
790-
updateStyle(coinIcon);
786+
if (isTransparent != _isTransparent) {
787+
isTransparent = _isTransparent;
788+
resetChangeAddress();
789+
resetCoinControl();
790+
tryRefreshAmounts();
791+
updateStyle(coinIcon);
792+
}
791793
}
792794

793795
void SendWidget::onContactsClicked(SendMultiRow* entry)

0 commit comments

Comments
 (0)