diff options
| author | Jonas Schnelli <[email protected]> | 2019-01-03 11:34:38 -1000 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2019-01-04 08:52:22 -1000 |
| commit | 7bb45e4b7a71e0ff0e2bbeba5367022758efa5d4 (patch) | |
| tree | f810aa97af76432549d5c9f46e6811f98bcb62cb /src/qt/clientmodel.cpp | |
| parent | Merge #15038: docs: Get more info about GUI-related issue on Linux (diff) | |
| download | discoin-7bb45e4b7a71e0ff0e2bbeba5367022758efa5d4.tar.xz discoin-7bb45e4b7a71e0ff0e2bbeba5367022758efa5d4.zip | |
Qt: update header count regardless of update delay
Diffstat (limited to 'src/qt/clientmodel.cpp')
| -rw-r--r-- | src/qt/clientmodel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/clientmodel.cpp b/src/qt/clientmodel.cpp index 217326f81..1b411f518 100644 --- a/src/qt/clientmodel.cpp +++ b/src/qt/clientmodel.cpp @@ -237,8 +237,8 @@ static void BlockTipChanged(ClientModel *clientmodel, bool initialSync, int heig clientmodel->cachedBestHeaderHeight = height; clientmodel->cachedBestHeaderTime = blockTime; } - // if we are in-sync, update the UI regardless of last update time - if (!initialSync || now - nLastUpdateNotification > MODEL_UPDATE_DELAY) { + // if we are in-sync or if we notify a header update, update the UI regardless of last update time + if (fHeader || !initialSync || now - nLastUpdateNotification > MODEL_UPDATE_DELAY) { //pass an async signal to the UI thread QMetaObject::invokeMethod(clientmodel, "numBlocksChanged", Qt::QueuedConnection, Q_ARG(int, height), |