Skip to content

Commit a001f18

Browse files
committed
[Qt] Always pass the numBlocksChanged signal for headers tip changed
1 parent bd44a04 commit a001f18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/clientmodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ static void BlockTipChanged(ClientModel *clientmodel, bool initialSync, const CB
234234
int64_t& nLastUpdateNotification = fHeader ? nLastHeaderTipUpdateNotification : nLastBlockTipUpdateNotification;
235235

236236
// if we are in-sync, update the UI regardless of last update time
237-
if (!initialSync || now - nLastUpdateNotification > MODEL_UPDATE_DELAY) {
237+
if (fHeader || !initialSync || now - nLastUpdateNotification > MODEL_UPDATE_DELAY) {
238238
//pass a async signal to the UI thread
239239
QMetaObject::invokeMethod(clientmodel, "numBlocksChanged", Qt::QueuedConnection,
240240
Q_ARG(int, pIndex->nHeight),

0 commit comments

Comments
 (0)