aboutsummaryrefslogtreecommitdiff
path: root/src/qt/sendcoinsentry.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2013-01-25 18:46:53 +0100
committerPhilip Kaufmann <phil.kaufmann@t-online.de>2013-03-18 07:44:22 +0100
commit311993ab106c250a1779bfdb649cf4f8c2416fb5 (patch)
tree5a103deacc3066bf1733b843dbfe60186995e0cc /src/qt/sendcoinsentry.cpp
parent74e4d80068f9c29d4891439332b4027328c8584b (diff)
downloadbitcoin-311993ab106c250a1779bfdb649cf4f8c2416fb5.tar.xz
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.cpp6
1 files changed, 6 insertions, 0 deletions
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();