mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-08-05 06:24:49 +02:00
GUI: Use warning indicator for send coins entries with reused addresses
This commit is contained in:
parent
bde17b6138
commit
668e18bf70
@ -71,6 +71,12 @@ void SendCoinsEntry::setModel(WalletModel *_model)
|
|||||||
{
|
{
|
||||||
this->model = _model;
|
this->model = _model;
|
||||||
|
|
||||||
|
if (_model) {
|
||||||
|
ui->payTo->setWarningValidator(new BitcoinAddressUnusedInWalletValidator(*_model));
|
||||||
|
} else {
|
||||||
|
ui->payTo->setWarningValidator(nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
if (_model && _model->getOptionsModel())
|
if (_model && _model->getOptionsModel())
|
||||||
connect(_model->getOptionsModel(), &OptionsModel::displayUnitChanged, this, &SendCoinsEntry::updateDisplayUnit);
|
connect(_model->getOptionsModel(), &OptionsModel::displayUnitChanged, this, &SendCoinsEntry::updateDisplayUnit);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user