mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
Fix crash on exit when -createwalletbackups=0 (#1810)
This commit is contained in:
parent
8506678d4b
commit
ada41c3af1
@ -132,7 +132,8 @@ OverviewPage::OverviewPage(const PlatformStyle *platformStyle, QWidget *parent)
|
||||
currentWatchOnlyBalance(-1),
|
||||
currentWatchUnconfBalance(-1),
|
||||
currentWatchImmatureBalance(-1),
|
||||
txdelegate(new TxViewDelegate(platformStyle, this))
|
||||
txdelegate(new TxViewDelegate(platformStyle, this)),
|
||||
timer(nullptr)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
QString theme = GUIUtil::getThemeName();
|
||||
@ -195,7 +196,7 @@ void OverviewPage::handleOutOfSyncWarningClicks()
|
||||
|
||||
OverviewPage::~OverviewPage()
|
||||
{
|
||||
if(!fLiteMode && !fMasterNode) disconnect(timer, SIGNAL(timeout()), this, SLOT(privateSendStatus()));
|
||||
if(timer) disconnect(timer, SIGNAL(timeout()), this, SLOT(privateSendStatus()));
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user