|
|
|
@ -343,17 +343,17 @@ static void NotifyTransactionChanged(WalletModel *walletmodel, CWallet *wallet,
@@ -343,17 +343,17 @@ static void NotifyTransactionChanged(WalletModel *walletmodel, CWallet *wallet,
|
|
|
|
|
void WalletModel::subscribeToCoreSignals() |
|
|
|
|
{ |
|
|
|
|
// Connect signals to wallet
|
|
|
|
|
wallet->NotifyStatusChanged.connect(boost::bind(&NotifyKeyStoreStatusChanged, this, _1)); |
|
|
|
|
wallet->NotifyAddressBookChanged.connect(boost::bind(NotifyAddressBookChanged, this, _1, _2, _3, _4, _5)); |
|
|
|
|
wallet->NotifyTransactionChanged.connect(boost::bind(NotifyTransactionChanged, this, _1, _2, _3)); |
|
|
|
|
wallet->NotifyStatusChanged.connect(boost::bind(&NotifyKeyStoreStatusChanged, this, boost::placeholders::_1)); |
|
|
|
|
wallet->NotifyAddressBookChanged.connect(boost::bind(NotifyAddressBookChanged, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4, boost::placeholders::_5)); |
|
|
|
|
wallet->NotifyTransactionChanged.connect(boost::bind(NotifyTransactionChanged, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void WalletModel::unsubscribeFromCoreSignals() |
|
|
|
|
{ |
|
|
|
|
// Disconnect signals from wallet
|
|
|
|
|
wallet->NotifyStatusChanged.disconnect(boost::bind(&NotifyKeyStoreStatusChanged, this, _1)); |
|
|
|
|
wallet->NotifyAddressBookChanged.disconnect(boost::bind(NotifyAddressBookChanged, this, _1, _2, _3, _4, _5)); |
|
|
|
|
wallet->NotifyTransactionChanged.disconnect(boost::bind(NotifyTransactionChanged, this, _1, _2, _3)); |
|
|
|
|
wallet->NotifyStatusChanged.disconnect(boost::bind(&NotifyKeyStoreStatusChanged, this, boost::placeholders::_1)); |
|
|
|
|
wallet->NotifyAddressBookChanged.disconnect(boost::bind(NotifyAddressBookChanged, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3, boost::placeholders::_4, boost::placeholders::_5)); |
|
|
|
|
wallet->NotifyTransactionChanged.disconnect(boost::bind(NotifyTransactionChanged, this, boost::placeholders::_1, boost::placeholders::_2, boost::placeholders::_3)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// WalletModel::UnlockContext implementation
|
|
|
|
|