[Qt] modalinfolayer: removed unused comments, renamed signal, code style overhaul
This commit is contained in:
committed by
lateminer
parent
c37826a9e7
commit
1f5a7b96be
@@ -267,7 +267,7 @@ BitcoinGUI::BitcoinGUI(const Config *cfg, const PlatformStyle *platformStyle, co
|
||||
modalOverlay = new ModalOverlay(this->centralWidget());
|
||||
#ifdef ENABLE_WALLET
|
||||
if(enableWallet)
|
||||
connect(walletFrame, SIGNAL(requestedOfSyncWarningInfo()), this, SLOT(showModalOverlay()));
|
||||
connect(walletFrame, SIGNAL(requestedSyncWarningInfo()), this, SLOT(showModalOverlay()));
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -755,13 +755,13 @@ void BitcoinGUI::setNumBlocks(int count, const QDateTime& blockDate, double nVer
|
||||
{
|
||||
if (modalOverlay)
|
||||
{
|
||||
if (header)
|
||||
{
|
||||
if (header) {
|
||||
/* use clientmodels getHeaderTipHeight and getHeaderTipTime because the NotifyHeaderTip signal does not fire when updating the best header */
|
||||
modalOverlay->setKnownBestHeight(clientModel->getHeaderTipHeight(), QDateTime::fromTime_t(clientModel->getHeaderTipTime()));
|
||||
}
|
||||
else
|
||||
else {
|
||||
modalOverlay->tipUpdate(count, blockDate, nVerificationProgress);
|
||||
}
|
||||
}
|
||||
if (!clientModel)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user