Browse Source

Send: fix multidest parse line numbers

1.0.0
tobtoht 1 month ago
parent
commit
ab32e0b2a3
Signed by: tobtoht GPG Key ID: 1CADD27F41F45C3C
  1. 4
      src/widgets/PayToEdit.cpp

4
src/widgets/PayToEdit.cpp

@ -170,8 +170,9 @@ void PayToEdit::parseAsMultiline(const QStringList &lines) {
m_outputs.clear();
m_total = 0;
int i = 0;
int i = -1;
for (auto &line : lines) {
i++;
PartialTxOutput output = this->parseAddressAndAmount(line);
if (output.address.isEmpty() && output.amount == 0) {
m_errors.append(PayToLineError(line, "Expected two comma-separated values: (address, amount)", i, true));
@ -186,6 +187,5 @@ void PayToEdit::parseAsMultiline(const QStringList &lines) {
m_outputs.append(output);
m_total += output.amount;
i += 1;
}
}
Loading…
Cancel
Save