changeset 2900:f081ab8e0eff draft

Do not show green tick unless all known blocks are downloaded (fixes #921)
author Wladimir J. van der Laan <laanwj@gmail.com>
date Sat, 14 Apr 2012 08:21:22 +0200
parents 790bfe723cf5
children 7927f7d41b44 d518392572bc
files src/qt/bitcoingui.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/qt/bitcoingui.cpp
+++ b/src/qt/bitcoingui.cpp
@@ -480,7 +480,7 @@
     }
 
     // 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));