Skip to content

Commit

Permalink
Show "Connecting..." in progress when we don't know the best block he…
Browse files Browse the repository at this point in the history
…ight yet.
  • Loading branch information
mempko committed Feb 1, 2018
1 parent 0c9a839 commit e5c94c1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/qt/modaloverlay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,12 @@ void ModalOverlay::tipUpdate(int count, const QDateTime& blockDate)
ui->newestBlockDate->setText(blockDate.toString());

// show the percentage done according to verificationProgress
ui->percentageProgress->setText(QString::number(verificationProgress*100, 'f', 2)+"%");
if(bestHeaderHeight == 0) {
ui->percentageProgress->setText(tr("Connecting..."));
} else {
ui->percentageProgress->setText(QString::number(verificationProgress*100, 'f', 2)+"%");
}

ui->progressBar->setValue(verificationProgress*100);

if (!bestHeaderDate.isValid())
Expand Down

0 comments on commit e5c94c1

Please sign in to comment.