Skip to content

Commit 36aecee

Browse files
committed
qml: New recipients use current's units
1 parent f673f7c commit 36aecee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/qml/models/sendrecipientslistmodel.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,11 @@ void SendRecipientsListModel::add()
5353
auto* recipient = new SendRecipient(this);
5454
connect(recipient->amount(), &BitcoinAmount::amountChanged,
5555
this, &SendRecipientsListModel::updateTotalAmount);
56+
if (m_recipients.size() > 0) {
57+
recipient->amount()->setUnit(m_recipients[m_current]->amount()->unit());
58+
}
5659
m_recipients.append(recipient);
60+
5761
endInsertRows();
5862
Q_EMIT countChanged();
5963
setCurrentIndex(row);

0 commit comments

Comments
 (0)