@@ -148,11 +148,6 @@ uint256 ClientModel::getBestBlockHash()
148
148
return m_cached_tip_blocks;
149
149
}
150
150
151
- void ClientModel::updateNetworkActive (bool networkActive)
152
- {
153
- Q_EMIT networkActiveChanged (networkActive);
154
- }
155
-
156
151
void ClientModel::updateAlert ()
157
152
{
158
153
Q_EMIT alertsChanged (getStatusBarWarnings ());
@@ -231,13 +226,6 @@ void ClientModel::updateBanlist()
231
226
}
232
227
233
228
// Handlers for core signals
234
- static void NotifyNetworkActiveChanged (ClientModel *clientmodel, bool networkActive)
235
- {
236
- bool invoked = QMetaObject::invokeMethod (clientmodel, " updateNetworkActive" , Qt::QueuedConnection,
237
- Q_ARG (bool , networkActive));
238
- assert (invoked);
239
- }
240
-
241
229
static void NotifyAlertChanged (ClientModel *clientmodel)
242
230
{
243
231
qDebug () << " NotifyAlertChanged" ;
@@ -292,7 +280,10 @@ void ClientModel::subscribeToCoreSignals()
292
280
[this ](int new_num_connections) {
293
281
Q_EMIT numConnectionsChanged (new_num_connections);
294
282
});
295
- m_handler_notify_network_active_changed = m_node.handleNotifyNetworkActiveChanged (std::bind (NotifyNetworkActiveChanged, this , std::placeholders::_1));
283
+ m_handler_notify_network_active_changed = m_node.handleNotifyNetworkActiveChanged (
284
+ [this ](bool network_active) {
285
+ Q_EMIT networkActiveChanged (network_active);
286
+ });
296
287
m_handler_notify_alert_changed = m_node.handleNotifyAlertChanged (std::bind (NotifyAlertChanged, this ));
297
288
m_handler_banned_list_changed = m_node.handleBannedListChanged (std::bind (BannedListChanged, this ));
298
289
m_handler_notify_block_tip = m_node.handleNotifyBlockTip (std::bind (BlockTipChanged, this , std::placeholders::_1, std::placeholders::_2, std::placeholders::_3, false ));
0 commit comments