refactor: Simplify connection syntax

This commit is contained in:
Hennadii Stepanov
2020-01-16 20:44:21 +02:00
parent 7d0a8f4f53
commit 1a53b0da60
3 changed files with 3 additions and 9 deletions

View File

@@ -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