aboutsummaryrefslogtreecommitdiff
path: root/src/qt/clientmodel.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2016-09-26 18:58:51 +0200
committerMarcoFalke <falke.marco@gmail.com>2016-09-26 22:29:45 +0200
commitfaa4de2a2ac2eb9bb6a419940da83fa898d16a3c (patch)
tree6170fcdfcff59a08f41090afe71439430c9f5f1d /src/qt/clientmodel.cpp
parent2f71490d21796594ca6f55e375558944de9db5a0 (diff)
downloadbitcoin-faa4de2a2ac2eb9bb6a419940da83fa898d16a3c.tar.xz
[qt] sync-overlay: Don't block during reindex
Diffstat (limited to 'src/qt/clientmodel.cpp')
-rw-r--r--src/qt/clientmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp
index 6d19b3d122..87704c641d 100644
--- a/src/qt/clientmodel.cpp
+++ b/src/qt/clientmodel.cpp
@@ -256,7 +256,7 @@ static void BlockTipChanged(ClientModel *clientmodel, bool initialSync, const CB
int64_t& nLastUpdateNotification = fHeader ? nLastHeaderTipUpdateNotification : nLastBlockTipUpdateNotification;
// if we are in-sync, update the UI regardless of last update time
- if (fHeader || !initialSync || now - nLastUpdateNotification > MODEL_UPDATE_DELAY) {
+ if (!initialSync || now - nLastUpdateNotification > MODEL_UPDATE_DELAY) {
//pass a async signal to the UI thread
QMetaObject::invokeMethod(clientmodel, "numBlocksChanged", Qt::QueuedConnection,
Q_ARG(int, pIndex->nHeight),