aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoingui.cpp
diff options
context:
space:
mode:
authorMatt Corallo <matt@bluematt.me>2011-12-23 20:27:12 -0800
committerMatt Corallo <matt@bluematt.me>2012-01-05 00:29:28 -0500
commit7d145a0f591dab109eae9adcfaf59303cce0431a (patch)
tree95fbe9a79ca7c5ebf393a7121530c903e37dec38 /src/qt/bitcoingui.cpp
parent9a93c4c02471fea7acb4882efaebaaefc1733466 (diff)
Add support for opening bitcoin: URIs directly.
Diffstat (limited to 'src/qt/bitcoingui.cpp')
-rw-r--r--src/qt/bitcoingui.cpp7
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)