diff options
| author | Wladimir J. van der Laan <[email protected]> | 2011-08-07 16:04:48 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2011-08-07 16:04:48 +0200 |
| commit | db7f023417eeeb96eed35c9d06541544abcd7033 (patch) | |
| tree | 2f10b47a3090b5a7b1ae2c54342d0a7ed70b6d3e /src/qt/sendcoinsentry.cpp | |
| parent | Merge branch 'master' of https://github.com/bitcoin/bitcoin (diff) | |
| download | discoin-db7f023417eeeb96eed35c9d06541544abcd7033.tar.xz discoin-db7f023417eeeb96eed35c9d06541544abcd7033.zip | |
Accept "bitcoin:" URL drops from browsers
Diffstat (limited to 'src/qt/sendcoinsentry.cpp')
| -rw-r--r-- | src/qt/sendcoinsentry.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/qt/sendcoinsentry.cpp b/src/qt/sendcoinsentry.cpp index abdbc81bd..e97f675fd 100644 --- a/src/qt/sendcoinsentry.cpp +++ b/src/qt/sendcoinsentry.cpp @@ -102,7 +102,6 @@ bool SendCoinsEntry::validate() } } - if(!ui->payTo->hasAcceptableInput() || (model && !model->validateAddress(ui->payTo->text()))) { @@ -133,3 +132,16 @@ QWidget *SendCoinsEntry::setupTabChain(QWidget *prev) QWidget::setTabOrder(ui->deleteButton, ui->addAsLabel); return ui->payAmount->setupTabChain(ui->addAsLabel); } + +void SendCoinsEntry::setValue(const SendCoinsRecipient &value) +{ + ui->payTo->setText(value.address); + ui->addAsLabel->setText(value.label); + ui->payAmount->setValue(value.amount); +} + +bool SendCoinsEntry::isClear() +{ + return ui->payTo->text().isEmpty(); +} + |