Skip to content

Commit 06087bd

Browse files
author
Philip Kaufmann
committed
[Qt] minor comment updates in PaymentServer
1 parent 35d1595 commit 06087bd

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/qt/paymentserver.cpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ PaymentServer::PaymentServer(QObject* parent, bool startLocalServer) :
312312

313313
// Install global event filter to catch QFileOpenEvents
314314
// on Mac: sent when you click bitcoin: links
315-
// other OSes: helpful when dealing with payment request files (in the future)
315+
// other OSes: helpful when dealing with payment request files
316316
if (parent)
317317
parent->installEventFilter(this);
318318

@@ -343,14 +343,13 @@ PaymentServer::~PaymentServer()
343343
}
344344

345345
//
346-
// OSX-specific way of handling bitcoin: URIs and
347-
// PaymentRequest mime types
346+
// OSX-specific way of handling bitcoin: URIs and PaymentRequest mime types.
347+
// Also used by paymentservertests.cpp and when opening a payment request file
348+
// via "Open URI..." menu entry.
348349
//
349350
bool PaymentServer::eventFilter(QObject *object, QEvent *event)
350351
{
351-
// clicking on bitcoin: URIs creates FileOpen events on the Mac
352-
if (event->type() == QEvent::FileOpen)
353-
{
352+
if (event->type() == QEvent::FileOpen) {
354353
QFileOpenEvent *fileEvent = static_cast<QFileOpenEvent*>(event);
355354
if (!fileEvent->file().isEmpty())
356355
handleURIOrFile(fileEvent->file());
@@ -571,9 +570,9 @@ bool PaymentServer::processPaymentRequest(const PaymentRequestPlus& request, Sen
571570
addresses.append(QString::fromStdString(CBitcoinAddress(dest).ToString()));
572571
}
573572
else if (!recipient.authenticatedMerchant.isEmpty()) {
574-
// Insecure payments to custom bitcoin addresses are not supported
575-
// (there is no good way to tell the user where they are paying in a way
576-
// they'd have a chance of understanding).
573+
// Unauthenticated payment requests to custom bitcoin addresses are not supported
574+
// (there is no good way to tell the user where they are paying in a way they'd
575+
// have a chance of understanding).
577576
emit message(tr("Payment request rejected"),
578577
tr("Unverified payment requests to custom payment scripts are unsupported."),
579578
CClientUIInterface::MSG_ERROR);

0 commit comments

Comments
 (0)