aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoin.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-01-16 20:44:21 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-01-16 20:44:21 +0200
commit1a53b0da60097cd7fd423c519f01ceca0fd0aa14 (patch)
tree486b98865680cafe007e047cdcdc78f19b66ed03 /src/qt/bitcoin.cpp
parent7d0a8f4f530885cbf3870291f10f667326373bd1 (diff)
refactor: Simplify connection syntax
Diffstat (limited to 'src/qt/bitcoin.cpp')
-rw-r--r--src/qt/bitcoin.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index 4313d6ee7f..12a620c57a 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -361,9 +361,7 @@ void BitcoinApplication::initializeResult(bool success)
if (paymentServer) {
connect(paymentServer, &PaymentServer::receivedPaymentRequest, window, &BitcoinGUI::handlePaymentRequest);
connect(window, &BitcoinGUI::receivedURI, paymentServer, &PaymentServer::handleURIOrFile);
- connect(paymentServer, &PaymentServer::message, [this](const QString& title, const QString& message, unsigned int style) {
- window->message(title, message, style);
- });
+ connect(paymentServer, &PaymentServer::message, window, &BitcoinGUI::message);
QTimer::singleShot(100, paymentServer, &PaymentServer::uiReady);
}
#endif