diff options
author | Matt Corallo <matt@bluematt.me> | 2011-12-23 20:27:12 -0800 |
---|---|---|
committer | Matt Corallo <matt@bluematt.me> | 2012-01-05 00:29:28 -0500 |
commit | 7d145a0f591dab109eae9adcfaf59303cce0431a (patch) | |
tree | 95fbe9a79ca7c5ebf393a7121530c903e37dec38 /src/qt/bitcoingui.cpp | |
parent | 9a93c4c02471fea7acb4882efaebaaefc1733466 (diff) |
Add support for opening bitcoin: URIs directly.
Diffstat (limited to 'src/qt/bitcoingui.cpp')
-rw-r--r-- | src/qt/bitcoingui.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index d4ce8a79e1..c9381a6059 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -671,6 +671,13 @@ void BitcoinGUI::dropEvent(QDropEvent *event) event->acceptProposedAction(); } +void BitcoinGUI::handleURL(QString strURL) +{ + gotoSendCoinsPage(); + QUrl url = QUrl(strURL); + sendCoinsPage->handleURL(&url); +} + void BitcoinGUI::setEncryptionStatus(int status) { switch(status) |