aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHennadii Stepanov <[email protected]>2020-01-19 09:37:34 +0200
committerHennadii Stepanov <[email protected]>2020-01-19 09:37:34 +0200
commit219417b388a0373f9eb71446e1b0499ab55dd3e2 (patch)
tree572908907237bfdac2bb022f669b84a48a81cb03 /src
parentMerge #17896: Serialization improvements (step 2) (diff)
downloaddiscoin-219417b388a0373f9eb71446e1b0499ab55dd3e2.tar.xz
discoin-219417b388a0373f9eb71446e1b0499ab55dd3e2.zip
Revert "refactor: Simplify connection syntax"
This reverts commit 1a53b0da60097cd7fd423c519f01ceca0fd0aa14.
Diffstat (limited to 'src')
-rw-r--r--src/qt/bitcoin.cpp4
-rw-r--r--src/qt/bitcoingui.cpp4
-rw-r--r--src/qt/walletview.cpp4
3 files changed, 9 insertions, 3 deletions
diff --git a/src/qt/bitcoin.cpp b/src/qt/bitcoin.cpp
index 12a620c57..4313d6ee7 100644
--- a/src/qt/bitcoin.cpp
+++ b/src/qt/bitcoin.cpp
@@ -361,7 +361,9 @@ 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, window, &BitcoinGUI::message);
+ connect(paymentServer, &PaymentServer::message, [this](const QString& title, const QString& message, unsigned int style) {
+ window->message(title, message, style);
+ });
QTimer::singleShot(100, paymentServer, &PaymentServer::uiReady);
}
#endif
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp
index 6043e93f9..eb6807430 100644
--- a/src/qt/bitcoingui.cpp
+++ b/src/qt/bitcoingui.cpp
@@ -564,7 +564,9 @@ void BitcoinGUI::setClientModel(ClientModel *_clientModel)
connect(_clientModel, &ClientModel::numBlocksChanged, this, &BitcoinGUI::setNumBlocks);
// Receive and report messages from client model
- connect(_clientModel, &ClientModel::message, this, &BitcoinGUI::message);
+ connect(_clientModel, &ClientModel::message, [this](const QString &title, const QString &message, unsigned int style){
+ this->message(title, message, style);
+ });
// Show progress dialog
connect(_clientModel, &ClientModel::showProgress, this, &BitcoinGUI::showProgress);
diff --git a/src/qt/walletview.cpp b/src/qt/walletview.cpp
index d0a4a622a..c777d633b 100644
--- a/src/qt/walletview.cpp
+++ b/src/qt/walletview.cpp
@@ -97,7 +97,9 @@ void WalletView::setBitcoinGUI(BitcoinGUI *gui)
connect(sendCoinsPage, &SendCoinsDialog::coinsSent, gui, &BitcoinGUI::gotoHistoryPage);
// Receive and report messages
- connect(this, &WalletView::message, gui, &BitcoinGUI::message);
+ connect(this, &WalletView::message, [gui](const QString &title, const QString &message, unsigned int style) {
+ gui->message(title, message, style);
+ });
// Pass through encryption status changed signals
connect(this, &WalletView::encryptionStatusChanged, gui, &BitcoinGUI::updateWalletStatus);