We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 23f59e7 + 66331f2 commit 2692ed3Copy full SHA for 2692ed3
src/qt/rpcconsole.cpp
@@ -232,7 +232,8 @@ void RPCConsole::setNumBlocks(int count)
232
ui->numberOfBlocks->setText(QString::number(count));
233
if(clientModel)
234
{
235
- ui->totalBlocks->setText(QString::number(clientModel->getNumBlocksOfPeers()));
+ // If there is no current number available display N/A instead of 0, which can't ever be true
236
+ ui->totalBlocks->setText(clientModel->getNumBlocksOfPeers() == 0 ? tr("N/A") : QString::number(clientModel->getNumBlocksOfPeers()));
237
ui->lastBlockTime->setText(clientModel->getLastBlockDate().toString());
238
}
239
0 commit comments