aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoin.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <[email protected]>2020-01-16 20:44:21 +0200
committerHennadii Stepanov <[email protected]>2020-01-16 20:44:21 +0200
commit1a53b0da60097cd7fd423c519f01ceca0fd0aa14 (patch)
tree486b98865680cafe007e047cdcdc78f19b66ed03 /src/qt/bitcoin.cpp
parentrefactor: Remove never used default parameter (diff)
downloaddiscoin-1a53b0da60097cd7fd423c519f01ceca0fd0aa14.tar.xz
discoin-1a53b0da60097cd7fd423c519f01ceca0fd0aa14.zip
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 4313d6ee7..12a620c57 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