Skip to content

Commit

Permalink
gui: Set progressDialog to nullptr
Browse files Browse the repository at this point in the history
Github-Pull: bitcoin#16135
Rebased-From: d2ae6be
  • Loading branch information
promag authored and MarcoFalke committed Jun 7, 2019
1 parent 7ed1a60 commit d80c558
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/qt/bitcoingui.cpp
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/qt/walletview.cpp
Expand Up @@ -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()) {
Expand Down

0 comments on commit d80c558

Please sign in to comment.