mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
gui: Set progressDialog to nullptr
Github-Pull: #16135
Rebased-From: d2ae6be80f
This commit is contained in:
parent
7ed1a60193
commit
d80c558e02
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
Add a link
Reference in a new issue