Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactiontablemodel.cpp
Show First 20 Lines • Show All 751 Lines • ▼ Show 20 Lines | if (nProgress == 100) { | ||||
std::vector<TransactionNotification>().swap(vQueueNotifications); | std::vector<TransactionNotification>().swap(vQueueNotifications); | ||||
} | } | ||||
} | } | ||||
void TransactionTableModel::subscribeToCoreSignals() { | void TransactionTableModel::subscribeToCoreSignals() { | ||||
// Connect signals to wallet | // Connect signals to wallet | ||||
m_handler_transaction_changed = | m_handler_transaction_changed = | ||||
walletModel->wallet().handleTransactionChanged( | walletModel->wallet().handleTransactionChanged( | ||||
boost::bind(NotifyTransactionChanged, this, _1, _2)); | std::bind(NotifyTransactionChanged, this, std::placeholders::_1, | ||||
m_handler_show_progress = walletModel->wallet().handleShowProgress( | std::placeholders::_2)); | ||||
boost::bind(ShowProgress, this, _1, _2)); | m_handler_show_progress = | ||||
walletModel->wallet().handleShowProgress(std::bind( | |||||
ShowProgress, this, std::placeholders::_1, std::placeholders::_2)); | |||||
} | } | ||||
void TransactionTableModel::unsubscribeFromCoreSignals() { | void TransactionTableModel::unsubscribeFromCoreSignals() { | ||||
// Disconnect signals from wallet | // Disconnect signals from wallet | ||||
m_handler_transaction_changed->disconnect(); | m_handler_transaction_changed->disconnect(); | ||||
m_handler_show_progress->disconnect(); | m_handler_show_progress->disconnect(); | ||||
} | } |