|
|
@ -209,12 +209,6 @@ static void ShowProgress(ClientModel *clientmodel, const std::string &title, int |
|
|
|
Q_ARG(int, nProgress)); |
|
|
|
Q_ARG(int, nProgress)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static void NotifyBlocksChanged(ClientModel *clientmodel) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// This notification is too frequent. Don't trigger a signal.
|
|
|
|
|
|
|
|
// Don't remove it, though, as it might be useful later.
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void NotifyNumConnectionsChanged(ClientModel *clientmodel, int newNumConnections) |
|
|
|
static void NotifyNumConnectionsChanged(ClientModel *clientmodel, int newNumConnections) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Too noisy: qDebug() << "NotifyNumConnectionsChanged : " + QString::number(newNumConnections);
|
|
|
|
// Too noisy: qDebug() << "NotifyNumConnectionsChanged : " + QString::number(newNumConnections);
|
|
|
@ -234,7 +228,6 @@ void ClientModel::subscribeToCoreSignals() |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Connect signals to client
|
|
|
|
// Connect signals to client
|
|
|
|
uiInterface.ShowProgress.connect(boost::bind(ShowProgress, this, _1, _2)); |
|
|
|
uiInterface.ShowProgress.connect(boost::bind(ShowProgress, this, _1, _2)); |
|
|
|
uiInterface.NotifyBlocksChanged.connect(boost::bind(NotifyBlocksChanged, this)); |
|
|
|
|
|
|
|
uiInterface.NotifyNumConnectionsChanged.connect(boost::bind(NotifyNumConnectionsChanged, this, _1)); |
|
|
|
uiInterface.NotifyNumConnectionsChanged.connect(boost::bind(NotifyNumConnectionsChanged, this, _1)); |
|
|
|
uiInterface.NotifyAlertChanged.connect(boost::bind(NotifyAlertChanged, this, _1, _2)); |
|
|
|
uiInterface.NotifyAlertChanged.connect(boost::bind(NotifyAlertChanged, this, _1, _2)); |
|
|
|
} |
|
|
|
} |
|
|
@ -243,7 +236,6 @@ void ClientModel::unsubscribeFromCoreSignals() |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Disconnect signals from client
|
|
|
|
// Disconnect signals from client
|
|
|
|
uiInterface.ShowProgress.disconnect(boost::bind(ShowProgress, this, _1, _2)); |
|
|
|
uiInterface.ShowProgress.disconnect(boost::bind(ShowProgress, this, _1, _2)); |
|
|
|
uiInterface.NotifyBlocksChanged.disconnect(boost::bind(NotifyBlocksChanged, this)); |
|
|
|
|
|
|
|
uiInterface.NotifyNumConnectionsChanged.disconnect(boost::bind(NotifyNumConnectionsChanged, this, _1)); |
|
|
|
uiInterface.NotifyNumConnectionsChanged.disconnect(boost::bind(NotifyNumConnectionsChanged, this, _1)); |
|
|
|
uiInterface.NotifyAlertChanged.disconnect(boost::bind(NotifyAlertChanged, this, _1, _2)); |
|
|
|
uiInterface.NotifyAlertChanged.disconnect(boost::bind(NotifyAlertChanged, this, _1, _2)); |
|
|
|
} |
|
|
|
} |
|
|
|