aboutsummaryrefslogtreecommitdiff
path: root/src/qt/bitcoingui.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2012-01-17 09:19:23 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2012-01-17 09:19:58 +0100
commitb2a967cd0b158f40787cc1acb4f1e245b5066cdf (patch)
tree737cbffad61b34a12a0b54ab9c6b5b0453e0badf /src/qt/bitcoingui.cpp
parentc981d768b3cb0cf0879b3d70d3b548692fff0882 (diff)
Revert to global progress indication (see #753)
Diffstat (limited to 'src/qt/bitcoingui.cpp')
-rw-r--r--src/qt/bitcoingui.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp
index d4ce8a79e1..d77279d42b 100644
--- a/src/qt/bitcoingui.cpp
+++ b/src/qt/bitcoingui.cpp
@@ -417,7 +417,6 @@ void BitcoinGUI::setNumBlocks(int count)
{
if(!clientModel)
return;
- int initTotal = clientModel->getNumBlocksAtStartup();
int total = clientModel->getNumBlocksOfPeers();
QString tooltip;
@@ -428,8 +427,8 @@ void BitcoinGUI::setNumBlocks(int count)
progressBarLabel->setVisible(true);
progressBarLabel->setText(tr("Synchronizing with network..."));
progressBar->setVisible(true);
- progressBar->setMaximum(total - initTotal);
- progressBar->setValue(count - initTotal);
+ progressBar->setMaximum(total);
+ progressBar->setValue(count);
}
else
{