diff options
| author | Wladimir J. van der Laan <[email protected]> | 2013-10-18 13:45:11 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2013-10-23 09:15:25 +0200 |
| commit | 8a7f37c7972504d25225c96f225503c329aaf6fa (patch) | |
| tree | 877843917da5d2e1ba69d553272f33f58b75d940 /src/qt/receivecoinsdialog.cpp | |
| parent | qt: add message field to SendCoinsRecipient (diff) | |
| download | discoin-8a7f37c7972504d25225c96f225503c329aaf6fa.tar.xz discoin-8a7f37c7972504d25225c96f225503c329aaf6fa.zip | |
qt: use SendCoinsRecipient for payment request information
This brings some symmetry into the design by using the same object
both for incoming URIs that are parsed as for outgoing URIs that
are formatted.
Diffstat (limited to 'src/qt/receivecoinsdialog.cpp')
| -rw-r--r-- | src/qt/receivecoinsdialog.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qt/receivecoinsdialog.cpp b/src/qt/receivecoinsdialog.cpp index 9e81c2cf7..fff678d0c 100644 --- a/src/qt/receivecoinsdialog.cpp +++ b/src/qt/receivecoinsdialog.cpp @@ -96,8 +96,9 @@ void ReceiveCoinsDialog::on_receiveButton_clicked() /* Generate new receiving address */ address = model->getAddressTableModel()->addRow(AddressTableModel::Receive, label, ""); } - ReceiveRequestDialog *dialog = new ReceiveRequestDialog(address, label, - ui->reqAmount->value(), ui->reqMessage->text(), this); + SendCoinsRecipient info(address, label, + ui->reqAmount->value(), ui->reqMessage->text()); + ReceiveRequestDialog *dialog = new ReceiveRequestDialog(info, this); dialog->setModel(model->getOptionsModel()); dialog->setAttribute(Qt::WA_DeleteOnClose); dialog->show(); |