diff options
| author | John-Gee <[email protected]> | 2020-12-22 06:25:23 -0800 |
|---|---|---|
| committer | John-Gee <[email protected]> | 2021-02-02 03:54:57 -0800 |
| commit | 41406bfa1747a9c1038355a3ed4c5e455591afe8 (patch) | |
| tree | 67f6160f7cfa6232b5cc85269842f491c195a7c1 /src/qt/transactiontablemodel.cpp | |
| parent | Merge pull request #1669 from carsenk/master (diff) | |
| download | discoin-41406bfa1747a9c1038355a3ed4c5e455591afe8.tar.xz discoin-41406bfa1747a9c1038355a3ed4c5e455591afe8.zip | |
Fix for Boost 1.74
Diffstat (limited to 'src/qt/transactiontablemodel.cpp')
| -rw-r--r-- | src/qt/transactiontablemodel.cpp | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/src/qt/transactiontablemodel.cpp b/src/qt/transactiontablemodel.cpp index 61466c8ed..57d6787c2 100644 --- a/src/qt/transactiontablemodel.cpp +++ b/src/qt/transactiontablemodel.cpp @@ -26,6 +26,7 @@ #include <QIcon> #include <QList> +#include <boost/bind/bind.hpp> #include <boost/foreach.hpp> // Amount column is right-aligned it contains numbers @@ -777,13 +778,23 @@ static void ShowProgress(TransactionTableModel *ttm, const std::string &title, i void TransactionTableModel::subscribeToCoreSignals() { // Connect signals to wallet - wallet->NotifyTransactionChanged.connect(boost::bind(NotifyTransactionChanged, this, _1, _2, _3)); - wallet->ShowProgress.connect(boost::bind(ShowProgress, this, _1, _2)); + wallet->NotifyTransactionChanged.connect(boost::bind(NotifyTransactionChanged, this, + boost::placeholders::_1, + boost::placeholders::_2, + boost::placeholders::_3)); + wallet->ShowProgress.connect(boost::bind(ShowProgress, this, + boost::placeholders::_1, + boost::placeholders::_2)); } void TransactionTableModel::unsubscribeFromCoreSignals() { // Disconnect signals from wallet - wallet->NotifyTransactionChanged.disconnect(boost::bind(NotifyTransactionChanged, this, _1, _2, _3)); - wallet->ShowProgress.disconnect(boost::bind(ShowProgress, this, _1, _2)); + wallet->NotifyTransactionChanged.disconnect(boost::bind(NotifyTransactionChanged, this, + boost::placeholders::_1, + boost::placeholders::_2, + boost::placeholders::_3)); + wallet->ShowProgress.disconnect(boost::bind(ShowProgress, this, + boost::placeholders::_1, + boost::placeholders::_2)); } |