Skip to content

Commit 875b583

Browse files
committed
qml: Return 0 when recipient amount QString is empty
1 parent 19880fd commit 875b583

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/qml/models/sendrecipient.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ bool SendRecipient::subtractFeeFromAmount() const
7070
CAmount SendRecipient::cAmount() const
7171
{
7272
// TODO: Figure out who owns the parsing of SendRecipient::amount to CAmount
73+
if (m_amount == "") {
74+
return 0;
75+
}
7376
return m_amount.toLongLong();
7477
}
7578

0 commit comments

Comments
 (0)