diff options
| author | Philip Kaufmann <[email protected]> | 2013-01-25 18:46:53 +0100 |
|---|---|---|
| committer | Philip Kaufmann <[email protected]> | 2013-03-18 07:44:22 +0100 |
| commit | 311993ab106c250a1779bfdb649cf4f8c2416fb5 (patch) | |
| tree | 5a103deacc3066bf1733b843dbfe60186995e0cc /src/qt/sendcoinsentry.cpp | |
| parent | Merge pull request #2210 from Diapolo/Qt_header_cpp_cleanup (diff) | |
| download | discoin-311993ab106c250a1779bfdb649cf4f8c2416fb5.tar.xz discoin-311993ab106c250a1779bfdb649cf4f8c2416fb5.zip | |
Bitcoin-Qt: add "send coins" to context menu in addressbook
- allows to directly select an address from the addressbook, chose "send
coins" from the context menu, which sends you to sendcoins tab and fills
in the selected address
Diffstat (limited to 'src/qt/sendcoinsentry.cpp')
| -rw-r--r-- | src/qt/sendcoinsentry.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/qt/sendcoinsentry.cpp b/src/qt/sendcoinsentry.cpp index 7dbca2408..876b7f808 100644 --- a/src/qt/sendcoinsentry.cpp +++ b/src/qt/sendcoinsentry.cpp @@ -153,6 +153,12 @@ void SendCoinsEntry::setValue(const SendCoinsRecipient &value) ui->payAmount->setValue(value.amount); } +void SendCoinsEntry::setAddress(const QString &address) +{ + ui->payTo->setText(address); + ui->payAmount->setFocus(); +} + bool SendCoinsEntry::isClear() { return ui->payTo->text().isEmpty(); |