aboutsummaryrefslogtreecommitdiff
path: root/src/qt/overviewpage.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2018-12-05 22:51:49 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2019-01-25 14:50:30 +0200
commit593ba696fb32da558091ac02ad87c4893db4ce97 (patch)
treeefd32881ae4f2449f00e15e205196226d871c8bd /src/qt/overviewpage.cpp
parentbfd7e5409720445b8439de20a5695b220f79f53d (diff)
Add warning messages to the debug window
Diffstat (limited to 'src/qt/overviewpage.cpp')
-rw-r--r--src/qt/overviewpage.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp
index bec79335e7..c743c4f862 100644
--- a/src/qt/overviewpage.cpp
+++ b/src/qt/overviewpage.cpp
@@ -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());
}