Changeset View
Changeset View
Standalone View
Standalone View
src/qt/sendcoinsdialog.cpp
Show First 20 Lines • Show All 249 Lines • ▼ Show 20 Lines | void SendCoinsDialog::on_sendButton_clicked() { | ||||
bool valid = true; | bool valid = true; | ||||
for (int i = 0; i < ui->entries->count(); ++i) { | for (int i = 0; i < ui->entries->count(); ++i) { | ||||
SendCoinsEntry *entry = | SendCoinsEntry *entry = | ||||
qobject_cast<SendCoinsEntry *>(ui->entries->itemAt(i)->widget()); | qobject_cast<SendCoinsEntry *>(ui->entries->itemAt(i)->widget()); | ||||
if (entry) { | if (entry) { | ||||
if (entry->validate(model->node())) { | if (entry->validate(model->node())) { | ||||
recipients.append(entry->getValue()); | recipients.append(entry->getValue()); | ||||
} else { | } else if (valid) { | ||||
ui->scrollArea->ensureWidgetVisible(entry); | |||||
valid = false; | valid = false; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
if (!valid || recipients.isEmpty()) { | if (!valid || recipients.isEmpty()) { | ||||
return; | return; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 758 Lines • Show Last 20 Lines |