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.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user