Add warning messages to the debug window

This commit is contained in:
Hennadii Stepanov
2018-12-05 22:51:49 +02:00
parent bfd7e54097
commit 593ba696fb
4 changed files with 41 additions and 3 deletions

View File

@@ -204,9 +204,8 @@ void OverviewPage::updateWatchOnlyLabels(bool showWatchOnly)
void OverviewPage::setClientModel(ClientModel *model)
{
this->clientModel = model;
if(model)
{
// Show warning if this is a prerelease version
if (model) {
// Show warning, for example if this is a prerelease version
connect(model, &ClientModel::alertsChanged, this, &OverviewPage::updateAlerts);
updateAlerts(model->getStatusBarWarnings());
}