From 311993ab106c250a1779bfdb649cf4f8c2416fb5 Mon Sep 17 00:00:00 2001 From: Philip Kaufmann Date: Fri, 25 Jan 2013 18:46:53 +0100 Subject: 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 --- src/qt/sendcoinsentry.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/qt/sendcoinsentry.cpp') diff --git a/src/qt/sendcoinsentry.cpp b/src/qt/sendcoinsentry.cpp index 7dbca24084..876b7f808b 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(); -- cgit v1.2.3