gui: Set progressDialog to nullptr
This commit is contained in:
parent
c7cfd20a77
commit
d2ae6be80f
2 changed files with 2 additions and 0 deletions
|
@ -1341,6 +1341,7 @@ void BitcoinGUI::showProgress(const QString &title, int nProgress)
|
|||
if (progressDialog) {
|
||||
progressDialog->close();
|
||||
progressDialog->deleteLater();
|
||||
progressDialog = nullptr;
|
||||
}
|
||||
} else if (progressDialog) {
|
||||
progressDialog->setValue(nProgress);
|
||||
|
|
|
@ -316,6 +316,7 @@ void WalletView::showProgress(const QString &title, int nProgress)
|
|||
if (progressDialog) {
|
||||
progressDialog->close();
|
||||
progressDialog->deleteLater();
|
||||
progressDialog = nullptr;
|
||||
}
|
||||
} else if (progressDialog) {
|
||||
if (progressDialog->wasCanceled()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue