Add warning messages to the debug window

This commit is contained in:
Hennadii Stepanov committed 2019-01-25 14:50:30 +02:00
1 parent bfd7e54097
commit 593ba696fb
4 files changed
+41 -3

No files matched your search

+2 -3
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());
}