gui: Set progressDialog to nullptr

pull/764/head
João Barbosa 6 years ago
parent c7cfd20a77
commit d2ae6be80f

@ -1341,6 +1341,7 @@ void BitcoinGUI::showProgress(const QString &title, int nProgress)
if (progressDialog) { if (progressDialog) {
progressDialog->close(); progressDialog->close();
progressDialog->deleteLater(); progressDialog->deleteLater();
progressDialog = nullptr;
} }
} else if (progressDialog) { } else if (progressDialog) {
progressDialog->setValue(nProgress); progressDialog->setValue(nProgress);

@ -316,6 +316,7 @@ void WalletView::showProgress(const QString &title, int nProgress)
if (progressDialog) { if (progressDialog) {
progressDialog->close(); progressDialog->close();
progressDialog->deleteLater(); progressDialog->deleteLater();
progressDialog = nullptr;
} }
} else if (progressDialog) { } else if (progressDialog) {
if (progressDialog->wasCanceled()) { if (progressDialog->wasCanceled()) {

Loading…
Cancel
Save