Skip to content

Commit 4bce3bf

Browse files
codablockUdjinM6
authored andcommitted
Fix crash on exit when -createwalletbackups=0 (#1810)
1 parent c494804 commit 4bce3bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/qt/overviewpage.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ OverviewPage::OverviewPage(const PlatformStyle *platformStyle, QWidget *parent)
132132
currentWatchOnlyBalance(-1),
133133
currentWatchUnconfBalance(-1),
134134
currentWatchImmatureBalance(-1),
135-
txdelegate(new TxViewDelegate(platformStyle, this))
135+
txdelegate(new TxViewDelegate(platformStyle, this)),
136+
timer(nullptr)
136137
{
137138
ui->setupUi(this);
138139
QString theme = GUIUtil::getThemeName();
@@ -195,7 +196,7 @@ void OverviewPage::handleOutOfSyncWarningClicks()
195196

196197
OverviewPage::~OverviewPage()
197198
{
198-
if(!fLiteMode && !fMasterNode) disconnect(timer, SIGNAL(timeout()), this, SLOT(privateSendStatus()));
199+
if(timer) disconnect(timer, SIGNAL(timeout()), this, SLOT(privateSendStatus()));
199200
delete ui;
200201
}
201202

0 commit comments

Comments
 (0)