mirror of
https://github.com/dogecoin/dogecoin.git
synced 2026-02-24 22:29:03 +00:00
Adding an early return for values that indicate 0 DOGE to send to the paper wallets.
Add the ability to send fractional amounts to paper wallets
This commit is contained in:
parent
621e99b702
commit
b2e4d66dca
@ -300,7 +300,7 @@ void PaperWalletDialog::on_printButton_clicked()
|
||||
|
||||
QString amountInput = QInputDialog::getText(this, tr("Load Paper Wallets"), tr("Please wait for wallets to print and verify readability.<br/>Enter the number of DOGE you wish to send to each wallet:"), QLineEdit::Normal, QString(), &ok);
|
||||
|
||||
if(!ok) {
|
||||
if(!ok || amountInput == "0" || amountInput == "0.0") {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -312,7 +312,7 @@ void PaperWalletDialog::on_printButton_clicked()
|
||||
}
|
||||
|
||||
QList<SendCoinsRecipient> recipients;
|
||||
quint64 amount = amountInput.toULongLong() * COIN;
|
||||
quint64 amount = (quint64) ( amountInput.toFloat() * COIN );
|
||||
foreach(const QString &dest, recipientPubKeyHashes)
|
||||
{
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user