Browse Source

Merge pull request #2731 from Diapolo/rpcconsole

Bitcoin-Qt: harmonize 2 setClientModel() functions
pull/1/head
Wladimir J. van der Laan 9 years ago
parent
commit
fc1f360fce
  1. 6
      src/qt/rpcconsole.cpp

6
src/qt/rpcconsole.cpp

@ -254,8 +254,11 @@ void RPCConsole::setClientModel(ClientModel *model) @@ -254,8 +254,11 @@ void RPCConsole::setClientModel(ClientModel *model)
this->clientModel = model;
if(model)
{
// Subscribe to information, replies, messages, errors
// Keep up to date with client
setNumConnections(model->getNumConnections());
connect(model, SIGNAL(numConnectionsChanged(int)), this, SLOT(setNumConnections(int)));
setNumBlocks(model->getNumBlocks(), model->getNumBlocksOfPeers());
connect(model, SIGNAL(numBlocksChanged(int,int)), this, SLOT(setNumBlocks(int,int)));
// Provide initial values
@ -264,7 +267,6 @@ void RPCConsole::setClientModel(ClientModel *model) @@ -264,7 +267,6 @@ void RPCConsole::setClientModel(ClientModel *model)
ui->buildDate->setText(model->formatBuildDate());
ui->startupTime->setText(model->formatClientStartupTime());
setNumConnections(model->getNumConnections());
ui->isTestNet->setChecked(model->isTestNet());
}
}

Loading…
Cancel
Save