HomePhabricator

gui: Set progressDialog to nullptr

Description

gui: Set progressDialog to nullptr

Summary:
The progress dialog pointer must be set to nullptr after deletion,
else it can cause a crash is showProgress is called again with n>0.

Backport of Core PR16135

Test Plan:
ninja && ninja check

Run ./bitcoin-qt Menu help -> debug -> console
In the console, run:

rescanblockchain
dumpwallet /tmp/wallet
importwallet /tmp/wallet

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, deadalnix

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D7799

Details

Provenance
João Barbosa <joao.paulo.barbosa@gmail.com>Authored on Jun 2 2019, 16:04
PiRKCommitted on Oct 8 2020, 13:08
PiRKPushed on Oct 8 2020, 13:08
Reviewer
Restricted Owners Package
Differential Revision
D7799: gui: Set progressDialog to nullptr
Parents
rABC577b84e3c894: Add 2nd arg to signrawtransactionwithkey examples
Branches
Unknown
Tags
Unknown

Event Timeline