Browse Source

Merge pull request #1096 from laanwj/2012_04_tick

Do not show green tick unless all known blocks are downloaded (fixes #921)
0.8
Wladimir J. van der Laan 13 years ago
parent
commit
c1d0547cf6
  1. 2
      src/qt/bitcoingui.cpp

2
src/qt/bitcoingui.cpp

@ -552,7 +552,7 @@ void BitcoinGUI::setNumBlocks(int count) @@ -552,7 +552,7 @@ void BitcoinGUI::setNumBlocks(int count)
}
// Set icon state: spinning if catching up, tick otherwise
if(secs < 90*60)
if(secs < 90*60 && count >= nTotalBlocks)
{
tooltip = tr("Up to date") + QString(".\n") + tooltip;
labelBlocksIcon->setPixmap(QIcon(":/icons/synced").pixmap(STATUSBAR_ICONSIZE,STATUSBAR_ICONSIZE));

Loading…
Cancel
Save