mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
Merge #3716: GUI: Receive: Remove option to reuse a previous address
927f4ff5a
GUI: Receive: Remove option to reuse a previous address (Luke Dashjr)
Pull request description:
This was justified by the need to "resent" an invoice, but now that we have the request history, that need should be gone.
Tree-SHA512: 4ade4eb84a21bbbd8dcc3a2c9580d416e113284b5bdf350c22051c233101fe0ee31659c54a7a46e7136f9c999acb61efbbb3f97aeb2fa7b2b1e1daec02ca0837
This commit is contained in:
parent
cc5b2f163c
commit
abc0fb08be
@ -28,23 +28,6 @@
|
||||
<layout class="QVBoxLayout" name="verticalLayout_3">
|
||||
<item>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="7" column="2">
|
||||
<widget class="QCheckBox" name="reuseAddress">
|
||||
<property name="toolTip">
|
||||
<string>Reuse one of the previously used receiving addresses.<br>Reusing addresses has security and privacy issues.<br>Do not use this unless re-generating a payment request made before.</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>R&euse an existing receiving address (not recommended)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="0">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="toolTip">
|
||||
@ -127,7 +110,7 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="2">
|
||||
<item row="7" column="2">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QPushButton" name="receiveButton">
|
||||
@ -176,7 +159,7 @@
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item row="8" column="0">
|
||||
<item row="7" column="0">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string/>
|
||||
@ -308,7 +291,6 @@
|
||||
<tabstop>reqLabel</tabstop>
|
||||
<tabstop>reqAmount</tabstop>
|
||||
<tabstop>reqMessage</tabstop>
|
||||
<tabstop>reuseAddress</tabstop>
|
||||
<tabstop>receiveButton</tabstop>
|
||||
<tabstop>clearButton</tabstop>
|
||||
<tabstop>recentRequestsView</tabstop>
|
||||
|
@ -106,7 +106,6 @@ void ReceiveCoinsDialog::clear()
|
||||
ui->reqAmount->clear();
|
||||
ui->reqLabel->setText("");
|
||||
ui->reqMessage->setText("");
|
||||
ui->reuseAddress->setChecked(false);
|
||||
updateDisplayUnit();
|
||||
}
|
||||
|
||||
@ -135,25 +134,8 @@ void ReceiveCoinsDialog::on_receiveButton_clicked()
|
||||
|
||||
QString address;
|
||||
QString label = ui->reqLabel->text();
|
||||
if(ui->reuseAddress->isChecked())
|
||||
{
|
||||
/* Choose existing receiving address */
|
||||
AddressBookPage dlg(platformStyle, AddressBookPage::ForSelection, AddressBookPage::ReceivingTab, this);
|
||||
dlg.setModel(model->getAddressTableModel());
|
||||
if(dlg.exec())
|
||||
{
|
||||
address = dlg.getReturnValue();
|
||||
if(label.isEmpty()) /* If no label provided, use the previously used label */
|
||||
{
|
||||
label = model->getAddressTableModel()->labelForAddress(address);
|
||||
}
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
/* Generate new receiving address */
|
||||
address = model->getAddressTableModel()->addRow(AddressTableModel::Receive, label, "");
|
||||
}
|
||||
/* Generate new receiving address */
|
||||
address = model->getAddressTableModel()->addRow(AddressTableModel::Receive, label, "");
|
||||
SendCoinsRecipient info(address, label,
|
||||
ui->reqAmount->value(), ui->reqMessage->text());
|
||||
ReceiveRequestDialog *dialog = new ReceiveRequestDialog(this);
|
||||
|
Loading…
Reference in New Issue
Block a user