Skip to content

Commit cf92bce

Browse files
committed
Update the remaining blocks left in modaloverlay at init.
1 parent 7148f5e commit cf92bce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/qt/bitcoingui.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ void BitcoinGUI::setClientModel(ClientModel *_clientModel)
478478
connect(_clientModel, SIGNAL(numConnectionsChanged(int)), this, SLOT(setNumConnections(int)));
479479
connect(_clientModel, SIGNAL(networkActiveChanged(bool)), this, SLOT(setNetworkActive(bool)));
480480

481+
modalOverlay->setKnownBestHeight(_clientModel->getHeaderTipHeight(), QDateTime::fromTime_t(_clientModel->getHeaderTipTime()));
481482
setNumBlocks(_clientModel->getNumBlocks(), _clientModel->getLastBlockDate(), _clientModel->getVerificationProgress(NULL), false);
482483
connect(_clientModel, SIGNAL(numBlocksChanged(int,QDateTime,double,bool)), this, SLOT(setNumBlocks(int,QDateTime,double,bool)));
483484

@@ -505,8 +506,6 @@ void BitcoinGUI::setClientModel(ClientModel *_clientModel)
505506
// initialize the disable state of the tray icon with the current value in the model.
506507
setTrayIconVisible(optionsModel->getHideTrayIcon());
507508
}
508-
509-
modalOverlay->setKnownBestHeight(clientModel->getHeaderTipHeight(), QDateTime::fromTime_t(clientModel->getHeaderTipTime()));
510509
} else {
511510
// Disable possibility to show main window via action
512511
toggleHideAction->setEnabled(false);

0 commit comments

Comments
 (0)