Changeset View
Changeset View
Standalone View
Standalone View
src/qt/sendcoinsdialog.cpp
| Show First 20 Lines • Show All 241 Lines • ▼ Show 20 Lines | void SendCoinsDialog::on_sendButton_clicked() { | ||||
| QList<SendCoinsRecipient> recipients; | QList<SendCoinsRecipient> recipients; | ||||
| 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()) { | if (entry->validate(model->node())) { | ||||
| recipients.append(entry->getValue()); | recipients.append(entry->getValue()); | ||||
| } else { | } else { | ||||
| valid = false; | valid = false; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (!valid || recipients.isEmpty()) { | if (!valid || recipients.isEmpty()) { | ||||
| ▲ Show 20 Lines • Show All 697 Lines • Show Last 20 Lines | |||||