|
|
@ -417,7 +417,6 @@ void BitcoinGUI::setNumBlocks(int count) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if(!clientModel) |
|
|
|
if(!clientModel) |
|
|
|
return; |
|
|
|
return; |
|
|
|
int initTotal = clientModel->getNumBlocksAtStartup(); |
|
|
|
|
|
|
|
int total = clientModel->getNumBlocksOfPeers(); |
|
|
|
int total = clientModel->getNumBlocksOfPeers(); |
|
|
|
QString tooltip; |
|
|
|
QString tooltip; |
|
|
|
|
|
|
|
|
|
|
@ -428,8 +427,8 @@ void BitcoinGUI::setNumBlocks(int count) |
|
|
|
progressBarLabel->setVisible(true); |
|
|
|
progressBarLabel->setVisible(true); |
|
|
|
progressBarLabel->setText(tr("Synchronizing with network...")); |
|
|
|
progressBarLabel->setText(tr("Synchronizing with network...")); |
|
|
|
progressBar->setVisible(true); |
|
|
|
progressBar->setVisible(true); |
|
|
|
progressBar->setMaximum(total - initTotal); |
|
|
|
progressBar->setMaximum(total); |
|
|
|
progressBar->setValue(count - initTotal); |
|
|
|
progressBar->setValue(count); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|