Fix crash on exit when -createwalletbackups=0 (#1810)

This commit is contained in:
Alexander Block 2017-12-27 18:41:04 +01:00 committed by UdjinM6
parent c49480445e
commit 4bce3bf8b2

View File

@ -132,7 +132,8 @@ OverviewPage::OverviewPage(const PlatformStyle *platformStyle, QWidget *parent)
currentWatchOnlyBalance(-1), currentWatchOnlyBalance(-1),
currentWatchUnconfBalance(-1), currentWatchUnconfBalance(-1),
currentWatchImmatureBalance(-1), currentWatchImmatureBalance(-1),
txdelegate(new TxViewDelegate(platformStyle, this)) txdelegate(new TxViewDelegate(platformStyle, this)),
timer(nullptr)
{ {
ui->setupUi(this); ui->setupUi(this);
QString theme = GUIUtil::getThemeName(); QString theme = GUIUtil::getThemeName();
@ -195,7 +196,7 @@ void OverviewPage::handleOutOfSyncWarningClicks()
OverviewPage::~OverviewPage() OverviewPage::~OverviewPage()
{ {
if(!fLiteMode && !fMasterNode) disconnect(timer, SIGNAL(timeout()), this, SLOT(privateSendStatus())); if(timer) disconnect(timer, SIGNAL(timeout()), this, SLOT(privateSendStatus()));
delete ui; delete ui;
} }